// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: type=lint
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark

part of 'ico_blockchain_model.dart';

// **************************************************************************
// FreezedGenerator
// **************************************************************************

T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
    'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');

IcoBlockchainModel _$IcoBlockchainModelFromJson(Map<String, dynamic> json) {
  return _IcoBlockchainModel.fromJson(json);
}

/// @nodoc
mixin _$IcoBlockchainModel {
  String get id => throw _privateConstructorUsedError;
  String get name => throw _privateConstructorUsedError;
  String get symbol => throw _privateConstructorUsedError;
  String get chainId => throw _privateConstructorUsedError;
  String? get icon => throw _privateConstructorUsedError;
  bool get isActive => throw _privateConstructorUsedError;
  String? get explorerUrl => throw _privateConstructorUsedError;
  String? get rpcUrl => throw _privateConstructorUsedError;

  /// Serializes this IcoBlockchainModel to a JSON map.
  Map<String, dynamic> toJson() => throw _privateConstructorUsedError;

  /// Create a copy of IcoBlockchainModel
  /// with the given fields replaced by the non-null parameter values.
  @JsonKey(includeFromJson: false, includeToJson: false)
  $IcoBlockchainModelCopyWith<IcoBlockchainModel> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $IcoBlockchainModelCopyWith<$Res> {
  factory $IcoBlockchainModelCopyWith(
          IcoBlockchainModel value, $Res Function(IcoBlockchainModel) then) =
      _$IcoBlockchainModelCopyWithImpl<$Res, IcoBlockchainModel>;
  @useResult
  $Res call(
      {String id,
      String name,
      String symbol,
      String chainId,
      String? icon,
      bool isActive,
      String? explorerUrl,
      String? rpcUrl});
}

/// @nodoc
class _$IcoBlockchainModelCopyWithImpl<$Res, $Val extends IcoBlockchainModel>
    implements $IcoBlockchainModelCopyWith<$Res> {
  _$IcoBlockchainModelCopyWithImpl(this._value, this._then);

  // ignore: unused_field
  final $Val _value;
  // ignore: unused_field
  final $Res Function($Val) _then;

  /// Create a copy of IcoBlockchainModel
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? id = null,
    Object? name = null,
    Object? symbol = null,
    Object? chainId = null,
    Object? icon = freezed,
    Object? isActive = null,
    Object? explorerUrl = freezed,
    Object? rpcUrl = freezed,
  }) {
    return _then(_value.copyWith(
      id: null == id
          ? _value.id
          : id // ignore: cast_nullable_to_non_nullable
              as String,
      name: null == name
          ? _value.name
          : name // ignore: cast_nullable_to_non_nullable
              as String,
      symbol: null == symbol
          ? _value.symbol
          : symbol // ignore: cast_nullable_to_non_nullable
              as String,
      chainId: null == chainId
          ? _value.chainId
          : chainId // ignore: cast_nullable_to_non_nullable
              as String,
      icon: freezed == icon
          ? _value.icon
          : icon // ignore: cast_nullable_to_non_nullable
              as String?,
      isActive: null == isActive
          ? _value.isActive
          : isActive // ignore: cast_nullable_to_non_nullable
              as bool,
      explorerUrl: freezed == explorerUrl
          ? _value.explorerUrl
          : explorerUrl // ignore: cast_nullable_to_non_nullable
              as String?,
      rpcUrl: freezed == rpcUrl
          ? _value.rpcUrl
          : rpcUrl // ignore: cast_nullable_to_non_nullable
              as String?,
    ) as $Val);
  }
}

/// @nodoc
abstract class _$$IcoBlockchainModelImplCopyWith<$Res>
    implements $IcoBlockchainModelCopyWith<$Res> {
  factory _$$IcoBlockchainModelImplCopyWith(_$IcoBlockchainModelImpl value,
          $Res Function(_$IcoBlockchainModelImpl) then) =
      __$$IcoBlockchainModelImplCopyWithImpl<$Res>;
  @override
  @useResult
  $Res call(
      {String id,
      String name,
      String symbol,
      String chainId,
      String? icon,
      bool isActive,
      String? explorerUrl,
      String? rpcUrl});
}

/// @nodoc
class __$$IcoBlockchainModelImplCopyWithImpl<$Res>
    extends _$IcoBlockchainModelCopyWithImpl<$Res, _$IcoBlockchainModelImpl>
    implements _$$IcoBlockchainModelImplCopyWith<$Res> {
  __$$IcoBlockchainModelImplCopyWithImpl(_$IcoBlockchainModelImpl _value,
      $Res Function(_$IcoBlockchainModelImpl) _then)
      : super(_value, _then);

  /// Create a copy of IcoBlockchainModel
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? id = null,
    Object? name = null,
    Object? symbol = null,
    Object? chainId = null,
    Object? icon = freezed,
    Object? isActive = null,
    Object? explorerUrl = freezed,
    Object? rpcUrl = freezed,
  }) {
    return _then(_$IcoBlockchainModelImpl(
      id: null == id
          ? _value.id
          : id // ignore: cast_nullable_to_non_nullable
              as String,
      name: null == name
          ? _value.name
          : name // ignore: cast_nullable_to_non_nullable
              as String,
      symbol: null == symbol
          ? _value.symbol
          : symbol // ignore: cast_nullable_to_non_nullable
              as String,
      chainId: null == chainId
          ? _value.chainId
          : chainId // ignore: cast_nullable_to_non_nullable
              as String,
      icon: freezed == icon
          ? _value.icon
          : icon // ignore: cast_nullable_to_non_nullable
              as String?,
      isActive: null == isActive
          ? _value.isActive
          : isActive // ignore: cast_nullable_to_non_nullable
              as bool,
      explorerUrl: freezed == explorerUrl
          ? _value.explorerUrl
          : explorerUrl // ignore: cast_nullable_to_non_nullable
              as String?,
      rpcUrl: freezed == rpcUrl
          ? _value.rpcUrl
          : rpcUrl // ignore: cast_nullable_to_non_nullable
              as String?,
    ));
  }
}

/// @nodoc
@JsonSerializable()
class _$IcoBlockchainModelImpl extends _IcoBlockchainModel {
  const _$IcoBlockchainModelImpl(
      {required this.id,
      required this.name,
      required this.symbol,
      required this.chainId,
      this.icon,
      this.isActive = true,
      this.explorerUrl,
      this.rpcUrl})
      : super._();

  factory _$IcoBlockchainModelImpl.fromJson(Map<String, dynamic> json) =>
      _$$IcoBlockchainModelImplFromJson(json);

  @override
  final String id;
  @override
  final String name;
  @override
  final String symbol;
  @override
  final String chainId;
  @override
  final String? icon;
  @override
  @JsonKey()
  final bool isActive;
  @override
  final String? explorerUrl;
  @override
  final String? rpcUrl;

  @override
  String toString() {
    return 'IcoBlockchainModel(id: $id, name: $name, symbol: $symbol, chainId: $chainId, icon: $icon, isActive: $isActive, explorerUrl: $explorerUrl, rpcUrl: $rpcUrl)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$IcoBlockchainModelImpl &&
            (identical(other.id, id) || other.id == id) &&
            (identical(other.name, name) || other.name == name) &&
            (identical(other.symbol, symbol) || other.symbol == symbol) &&
            (identical(other.chainId, chainId) || other.chainId == chainId) &&
            (identical(other.icon, icon) || other.icon == icon) &&
            (identical(other.isActive, isActive) ||
                other.isActive == isActive) &&
            (identical(other.explorerUrl, explorerUrl) ||
                other.explorerUrl == explorerUrl) &&
            (identical(other.rpcUrl, rpcUrl) || other.rpcUrl == rpcUrl));
  }

  @JsonKey(includeFromJson: false, includeToJson: false)
  @override
  int get hashCode => Object.hash(runtimeType, id, name, symbol, chainId, icon,
      isActive, explorerUrl, rpcUrl);

  /// Create a copy of IcoBlockchainModel
  /// with the given fields replaced by the non-null parameter values.
  @JsonKey(includeFromJson: false, includeToJson: false)
  @override
  @pragma('vm:prefer-inline')
  _$$IcoBlockchainModelImplCopyWith<_$IcoBlockchainModelImpl> get copyWith =>
      __$$IcoBlockchainModelImplCopyWithImpl<_$IcoBlockchainModelImpl>(
          this, _$identity);

  @override
  Map<String, dynamic> toJson() {
    return _$$IcoBlockchainModelImplToJson(
      this,
    );
  }
}

abstract class _IcoBlockchainModel extends IcoBlockchainModel {
  const factory _IcoBlockchainModel(
      {required final String id,
      required final String name,
      required final String symbol,
      required final String chainId,
      final String? icon,
      final bool isActive,
      final String? explorerUrl,
      final String? rpcUrl}) = _$IcoBlockchainModelImpl;
  const _IcoBlockchainModel._() : super._();

  factory _IcoBlockchainModel.fromJson(Map<String, dynamic> json) =
      _$IcoBlockchainModelImpl.fromJson;

  @override
  String get id;
  @override
  String get name;
  @override
  String get symbol;
  @override
  String get chainId;
  @override
  String? get icon;
  @override
  bool get isActive;
  @override
  String? get explorerUrl;
  @override
  String? get rpcUrl;

  /// Create a copy of IcoBlockchainModel
  /// with the given fields replaced by the non-null parameter values.
  @override
  @JsonKey(includeFromJson: false, includeToJson: false)
  _$$IcoBlockchainModelImplCopyWith<_$IcoBlockchainModelImpl> get copyWith =>
      throw _privateConstructorUsedError;
}
