mirrored_repositories/espresso-cash-public/packages/espressocash_api/lib/src
// 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 'scalex.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#custom-getters-and-methods');

GenerateScalexLinkResponseDto _$GenerateScalexLinkResponseDtoFromJson(
    Map<String, dynamic> json) {
  return _GenerateScalexLinkResponseDto.fromJson(json);
}

/// @nodoc
mixin _$GenerateScalexLinkResponseDto {
  String get signedUrl => throw _privateConstructorUsedError;

  Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
  @JsonKey(ignore: true)
  $GenerateScalexLinkResponseDtoCopyWith<GenerateScalexLinkResponseDto>
      get copyWith => throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $GenerateScalexLinkResponseDtoCopyWith<$Res> {
  factory $GenerateScalexLinkResponseDtoCopyWith(
          GenerateScalexLinkResponseDto value,
          $Res Function(GenerateScalexLinkResponseDto) then) =
      _$GenerateScalexLinkResponseDtoCopyWithImpl<$Res,
          GenerateScalexLinkResponseDto>;
  @useResult
  $Res call({String signedUrl});
}

/// @nodoc
class _$GenerateScalexLinkResponseDtoCopyWithImpl<$Res,
        $Val extends GenerateScalexLinkResponseDto>
    implements $GenerateScalexLinkResponseDtoCopyWith<$Res> {
  _$GenerateScalexLinkResponseDtoCopyWithImpl(this._value, this._then);

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

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? signedUrl = null,
  }) {
    return _then(_value.copyWith(
      signedUrl: null == signedUrl
          ? _value.signedUrl
          : signedUrl // ignore: cast_nullable_to_non_nullable
              as String,
    ) as $Val);
  }
}

/// @nodoc
abstract class _$$GenerateScalexLinkResponseDtoImplCopyWith<$Res>
    implements $GenerateScalexLinkResponseDtoCopyWith<$Res> {
  factory _$$GenerateScalexLinkResponseDtoImplCopyWith(
          _$GenerateScalexLinkResponseDtoImpl value,
          $Res Function(_$GenerateScalexLinkResponseDtoImpl) then) =
      __$$GenerateScalexLinkResponseDtoImplCopyWithImpl<$Res>;
  @override
  @useResult
  $Res call({String signedUrl});
}

/// @nodoc
class __$$GenerateScalexLinkResponseDtoImplCopyWithImpl<$Res>
    extends _$GenerateScalexLinkResponseDtoCopyWithImpl<$Res,
        _$GenerateScalexLinkResponseDtoImpl>
    implements _$$GenerateScalexLinkResponseDtoImplCopyWith<$Res> {
  __$$GenerateScalexLinkResponseDtoImplCopyWithImpl(
      _$GenerateScalexLinkResponseDtoImpl _value,
      $Res Function(_$GenerateScalexLinkResponseDtoImpl) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? signedUrl = null,
  }) {
    return _then(_$GenerateScalexLinkResponseDtoImpl(
      signedUrl: null == signedUrl
          ? _value.signedUrl
          : signedUrl // ignore: cast_nullable_to_non_nullable
              as String,
    ));
  }
}

/// @nodoc
@JsonSerializable()
class _$GenerateScalexLinkResponseDtoImpl
    implements _GenerateScalexLinkResponseDto {
  const _$GenerateScalexLinkResponseDtoImpl({required this.signedUrl});

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

  @override
  final String signedUrl;

  @override
  String toString() {
    return 'GenerateScalexLinkResponseDto(signedUrl: $signedUrl)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$GenerateScalexLinkResponseDtoImpl &&
            (identical(other.signedUrl, signedUrl) ||
                other.signedUrl == signedUrl));
  }

  @JsonKey(ignore: true)
  @override
  int get hashCode => Object.hash(runtimeType, signedUrl);

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$GenerateScalexLinkResponseDtoImplCopyWith<
          _$GenerateScalexLinkResponseDtoImpl>
      get copyWith => __$$GenerateScalexLinkResponseDtoImplCopyWithImpl<
          _$GenerateScalexLinkResponseDtoImpl>(this, _$identity);

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

abstract class _GenerateScalexLinkResponseDto
    implements GenerateScalexLinkResponseDto {
  const factory _GenerateScalexLinkResponseDto(
      {required final String signedUrl}) = _$GenerateScalexLinkResponseDtoImpl;

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

  @override
  String get signedUrl;
  @override
  @JsonKey(ignore: true)
  _$$GenerateScalexLinkResponseDtoImplCopyWith<
          _$GenerateScalexLinkResponseDtoImpl>
      get copyWith => throw _privateConstructorUsedError;
}

GenerateScalexLinkRequestDto _$GenerateScalexLinkRequestDtoFromJson(
    Map<String, dynamic> json) {
  return _GenerateScalexLinkRequestDto.fromJson(json);
}

/// @nodoc
mixin _$GenerateScalexLinkRequestDto {
  String get type => throw _privateConstructorUsedError;
  String get address => throw _privateConstructorUsedError;
  String get email => throw _privateConstructorUsedError;
  double? get amount => throw _privateConstructorUsedError;
  String? get currency => throw _privateConstructorUsedError;

  Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
  @JsonKey(ignore: true)
  $GenerateScalexLinkRequestDtoCopyWith<GenerateScalexLinkRequestDto>
      get copyWith => throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $GenerateScalexLinkRequestDtoCopyWith<$Res> {
  factory $GenerateScalexLinkRequestDtoCopyWith(
          GenerateScalexLinkRequestDto value,
          $Res Function(GenerateScalexLinkRequestDto) then) =
      _$GenerateScalexLinkRequestDtoCopyWithImpl<$Res,
          GenerateScalexLinkRequestDto>;
  @useResult
  $Res call(
      {String type,
      String address,
      String email,
      double? amount,
      String? currency});
}

/// @nodoc
class _$GenerateScalexLinkRequestDtoCopyWithImpl<$Res,
        $Val extends GenerateScalexLinkRequestDto>
    implements $GenerateScalexLinkRequestDtoCopyWith<$Res> {
  _$GenerateScalexLinkRequestDtoCopyWithImpl(this._value, this._then);

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

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? type = null,
    Object? address = null,
    Object? email = null,
    Object? amount = freezed,
    Object? currency = freezed,
  }) {
    return _then(_value.copyWith(
      type: null == type
          ? _value.type
          : type // ignore: cast_nullable_to_non_nullable
              as String,
      address: null == address
          ? _value.address
          : address // ignore: cast_nullable_to_non_nullable
              as String,
      email: null == email
          ? _value.email
          : email // ignore: cast_nullable_to_non_nullable
              as String,
      amount: freezed == amount
          ? _value.amount
          : amount // ignore: cast_nullable_to_non_nullable
              as double?,
      currency: freezed == currency
          ? _value.currency
          : currency // ignore: cast_nullable_to_non_nullable
              as String?,
    ) as $Val);
  }
}

/// @nodoc
abstract class _$$GenerateScalexLinkRequestDtoImplCopyWith<$Res>
    implements $GenerateScalexLinkRequestDtoCopyWith<$Res> {
  factory _$$GenerateScalexLinkRequestDtoImplCopyWith(
          _$GenerateScalexLinkRequestDtoImpl value,
          $Res Function(_$GenerateScalexLinkRequestDtoImpl) then) =
      __$$GenerateScalexLinkRequestDtoImplCopyWithImpl<$Res>;
  @override
  @useResult
  $Res call(
      {String type,
      String address,
      String email,
      double? amount,
      String? currency});
}

/// @nodoc
class __$$GenerateScalexLinkRequestDtoImplCopyWithImpl<$Res>
    extends _$GenerateScalexLinkRequestDtoCopyWithImpl<$Res,
        _$GenerateScalexLinkRequestDtoImpl>
    implements _$$GenerateScalexLinkRequestDtoImplCopyWith<$Res> {
  __$$GenerateScalexLinkRequestDtoImplCopyWithImpl(
      _$GenerateScalexLinkRequestDtoImpl _value,
      $Res Function(_$GenerateScalexLinkRequestDtoImpl) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? type = null,
    Object? address = null,
    Object? email = null,
    Object? amount = freezed,
    Object? currency = freezed,
  }) {
    return _then(_$GenerateScalexLinkRequestDtoImpl(
      type: null == type
          ? _value.type
          : type // ignore: cast_nullable_to_non_nullable
              as String,
      address: null == address
          ? _value.address
          : address // ignore: cast_nullable_to_non_nullable
              as String,
      email: null == email
          ? _value.email
          : email // ignore: cast_nullable_to_non_nullable
              as String,
      amount: freezed == amount
          ? _value.amount
          : amount // ignore: cast_nullable_to_non_nullable
              as double?,
      currency: freezed == currency
          ? _value.currency
          : currency // ignore: cast_nullable_to_non_nullable
              as String?,
    ));
  }
}

/// @nodoc
@JsonSerializable()
class _$GenerateScalexLinkRequestDtoImpl
    implements _GenerateScalexLinkRequestDto {
  const _$GenerateScalexLinkRequestDtoImpl(
      {required this.type,
      required this.address,
      required this.email,
      this.amount,
      this.currency});

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

  @override
  final String type;
  @override
  final String address;
  @override
  final String email;
  @override
  final double? amount;
  @override
  final String? currency;

  @override
  String toString() {
    return 'GenerateScalexLinkRequestDto(type: $type, address: $address, email: $email, amount: $amount, currency: $currency)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$GenerateScalexLinkRequestDtoImpl &&
            (identical(other.type, type) || other.type == type) &&
            (identical(other.address, address) || other.address == address) &&
            (identical(other.email, email) || other.email == email) &&
            (identical(other.amount, amount) || other.amount == amount) &&
            (identical(other.currency, currency) ||
                other.currency == currency));
  }

  @JsonKey(ignore: true)
  @override
  int get hashCode =>
      Object.hash(runtimeType, type, address, email, amount, currency);

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$GenerateScalexLinkRequestDtoImplCopyWith<
          _$GenerateScalexLinkRequestDtoImpl>
      get copyWith => __$$GenerateScalexLinkRequestDtoImplCopyWithImpl<
          _$GenerateScalexLinkRequestDtoImpl>(this, _$identity);

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

abstract class _GenerateScalexLinkRequestDto
    implements GenerateScalexLinkRequestDto {
  const factory _GenerateScalexLinkRequestDto(
      {required final String type,
      required final String address,
      required final String email,
      final double? amount,
      final String? currency}) = _$GenerateScalexLinkRequestDtoImpl;

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

  @override
  String get type;
  @override
  String get address;
  @override
  String get email;
  @override
  double? get amount;
  @override
  String? get currency;
  @override
  @JsonKey(ignore: true)
  _$$GenerateScalexLinkRequestDtoImplCopyWith<
          _$GenerateScalexLinkRequestDtoImpl>
      get copyWith => throw _privateConstructorUsedError;
}

OrderStatusScalexRequestDto _$OrderStatusScalexRequestDtoFromJson(
    Map<String, dynamic> json) {
  return _OrderStatusScalexRequestDto.fromJson(json);
}

/// @nodoc
mixin _$OrderStatusScalexRequestDto {
  String get referenceId => throw _privateConstructorUsedError;

  Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
  @JsonKey(ignore: true)
  $OrderStatusScalexRequestDtoCopyWith<OrderStatusScalexRequestDto>
      get copyWith => throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $OrderStatusScalexRequestDtoCopyWith<$Res> {
  factory $OrderStatusScalexRequestDtoCopyWith(
          OrderStatusScalexRequestDto value,
          $Res Function(OrderStatusScalexRequestDto) then) =
      _$OrderStatusScalexRequestDtoCopyWithImpl<$Res,
          OrderStatusScalexRequestDto>;
  @useResult
  $Res call({String referenceId});
}

/// @nodoc
class _$OrderStatusScalexRequestDtoCopyWithImpl<$Res,
        $Val extends OrderStatusScalexRequestDto>
    implements $OrderStatusScalexRequestDtoCopyWith<$Res> {
  _$OrderStatusScalexRequestDtoCopyWithImpl(this._value, this._then);

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

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? referenceId = null,
  }) {
    return _then(_value.copyWith(
      referenceId: null == referenceId
          ? _value.referenceId
          : referenceId // ignore: cast_nullable_to_non_nullable
              as String,
    ) as $Val);
  }
}

/// @nodoc
abstract class _$$OrderStatusScalexRequestDtoImplCopyWith<$Res>
    implements $OrderStatusScalexRequestDtoCopyWith<$Res> {
  factory _$$OrderStatusScalexRequestDtoImplCopyWith(
          _$OrderStatusScalexRequestDtoImpl value,
          $Res Function(_$OrderStatusScalexRequestDtoImpl) then) =
      __$$OrderStatusScalexRequestDtoImplCopyWithImpl<$Res>;
  @override
  @useResult
  $Res call({String referenceId});
}

/// @nodoc
class __$$OrderStatusScalexRequestDtoImplCopyWithImpl<$Res>
    extends _$OrderStatusScalexRequestDtoCopyWithImpl<$Res,
        _$OrderStatusScalexRequestDtoImpl>
    implements _$$OrderStatusScalexRequestDtoImplCopyWith<$Res> {
  __$$OrderStatusScalexRequestDtoImplCopyWithImpl(
      _$OrderStatusScalexRequestDtoImpl _value,
      $Res Function(_$OrderStatusScalexRequestDtoImpl) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? referenceId = null,
  }) {
    return _then(_$OrderStatusScalexRequestDtoImpl(
      referenceId: null == referenceId
          ? _value.referenceId
          : referenceId // ignore: cast_nullable_to_non_nullable
              as String,
    ));
  }
}

/// @nodoc
@JsonSerializable()
class _$OrderStatusScalexRequestDtoImpl
    implements _OrderStatusScalexRequestDto {
  const _$OrderStatusScalexRequestDtoImpl({required this.referenceId});

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

  @override
  final String referenceId;

  @override
  String toString() {
    return 'OrderStatusScalexRequestDto(referenceId: $referenceId)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$OrderStatusScalexRequestDtoImpl &&
            (identical(other.referenceId, referenceId) ||
                other.referenceId == referenceId));
  }

  @JsonKey(ignore: true)
  @override
  int get hashCode => Object.hash(runtimeType, referenceId);

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$OrderStatusScalexRequestDtoImplCopyWith<_$OrderStatusScalexRequestDtoImpl>
      get copyWith => __$$OrderStatusScalexRequestDtoImplCopyWithImpl<
          _$OrderStatusScalexRequestDtoImpl>(this, _$identity);

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

abstract class _OrderStatusScalexRequestDto
    implements OrderStatusScalexRequestDto {
  const factory _OrderStatusScalexRequestDto(
      {required final String referenceId}) = _$OrderStatusScalexRequestDtoImpl;

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

  @override
  String get referenceId;
  @override
  @JsonKey(ignore: true)
  _$$OrderStatusScalexRequestDtoImplCopyWith<_$OrderStatusScalexRequestDtoImpl>
      get copyWith => throw _privateConstructorUsedError;
}

OrderStatusScalexResponseDto _$OrderStatusScalexResponseDtoFromJson(
    Map<String, dynamic> json) {
  return _OrderStatusScalexResponseDto.fromJson(json);
}

/// @nodoc
mixin _$OrderStatusScalexResponseDto {
  @JsonKey(unknownEnumValue: ScalexOrderStatus.unknown)
  ScalexOrderStatus get status => throw _privateConstructorUsedError;
  OnRampScalexDetails? get onRampDetails => throw _privateConstructorUsedError;

  Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
  @JsonKey(ignore: true)
  $OrderStatusScalexResponseDtoCopyWith<OrderStatusScalexResponseDto>
      get copyWith => throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $OrderStatusScalexResponseDtoCopyWith<$Res> {
  factory $OrderStatusScalexResponseDtoCopyWith(
          OrderStatusScalexResponseDto value,
          $Res Function(OrderStatusScalexResponseDto) then) =
      _$OrderStatusScalexResponseDtoCopyWithImpl<$Res,
          OrderStatusScalexResponseDto>;
  @useResult
  $Res call(
      {@JsonKey(unknownEnumValue: ScalexOrderStatus.unknown)
      ScalexOrderStatus status,
      OnRampScalexDetails? onRampDetails});

  $OnRampScalexDetailsCopyWith<$Res>? get onRampDetails;
}

/// @nodoc
class _$OrderStatusScalexResponseDtoCopyWithImpl<$Res,
        $Val extends OrderStatusScalexResponseDto>
    implements $OrderStatusScalexResponseDtoCopyWith<$Res> {
  _$OrderStatusScalexResponseDtoCopyWithImpl(this._value, this._then);

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

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? status = null,
    Object? onRampDetails = freezed,
  }) {
    return _then(_value.copyWith(
      status: null == status
          ? _value.status
          : status // ignore: cast_nullable_to_non_nullable
              as ScalexOrderStatus,
      onRampDetails: freezed == onRampDetails
          ? _value.onRampDetails
          : onRampDetails // ignore: cast_nullable_to_non_nullable
              as OnRampScalexDetails?,
    ) as $Val);
  }

  @override
  @pragma('vm:prefer-inline')
  $OnRampScalexDetailsCopyWith<$Res>? get onRampDetails {
    if (_value.onRampDetails == null) {
      return null;
    }

    return $OnRampScalexDetailsCopyWith<$Res>(_value.onRampDetails!, (value) {
      return _then(_value.copyWith(onRampDetails: value) as $Val);
    });
  }
}

/// @nodoc
abstract class _$$OrderStatusScalexResponseDtoImplCopyWith<$Res>
    implements $OrderStatusScalexResponseDtoCopyWith<$Res> {
  factory _$$OrderStatusScalexResponseDtoImplCopyWith(
          _$OrderStatusScalexResponseDtoImpl value,
          $Res Function(_$OrderStatusScalexResponseDtoImpl) then) =
      __$$OrderStatusScalexResponseDtoImplCopyWithImpl<$Res>;
  @override
  @useResult
  $Res call(
      {@JsonKey(unknownEnumValue: ScalexOrderStatus.unknown)
      ScalexOrderStatus status,
      OnRampScalexDetails? onRampDetails});

  @override
  $OnRampScalexDetailsCopyWith<$Res>? get onRampDetails;
}

/// @nodoc
class __$$OrderStatusScalexResponseDtoImplCopyWithImpl<$Res>
    extends _$OrderStatusScalexResponseDtoCopyWithImpl<$Res,
        _$OrderStatusScalexResponseDtoImpl>
    implements _$$OrderStatusScalexResponseDtoImplCopyWith<$Res> {
  __$$OrderStatusScalexResponseDtoImplCopyWithImpl(
      _$OrderStatusScalexResponseDtoImpl _value,
      $Res Function(_$OrderStatusScalexResponseDtoImpl) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? status = null,
    Object? onRampDetails = freezed,
  }) {
    return _then(_$OrderStatusScalexResponseDtoImpl(
      status: null == status
          ? _value.status
          : status // ignore: cast_nullable_to_non_nullable
              as ScalexOrderStatus,
      onRampDetails: freezed == onRampDetails
          ? _value.onRampDetails
          : onRampDetails // ignore: cast_nullable_to_non_nullable
              as OnRampScalexDetails?,
    ));
  }
}

/// @nodoc
@JsonSerializable()
class _$OrderStatusScalexResponseDtoImpl
    implements _OrderStatusScalexResponseDto {
  const _$OrderStatusScalexResponseDtoImpl(
      {@JsonKey(unknownEnumValue: ScalexOrderStatus.unknown)
      required this.status,
      this.onRampDetails});

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

  @override
  @JsonKey(unknownEnumValue: ScalexOrderStatus.unknown)
  final ScalexOrderStatus status;
  @override
  final OnRampScalexDetails? onRampDetails;

  @override
  String toString() {
    return 'OrderStatusScalexResponseDto(status: $status, onRampDetails: $onRampDetails)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$OrderStatusScalexResponseDtoImpl &&
            (identical(other.status, status) || other.status == status) &&
            (identical(other.onRampDetails, onRampDetails) ||
                other.onRampDetails == onRampDetails));
  }

  @JsonKey(ignore: true)
  @override
  int get hashCode => Object.hash(runtimeType, status, onRampDetails);

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$OrderStatusScalexResponseDtoImplCopyWith<
          _$OrderStatusScalexResponseDtoImpl>
      get copyWith => __$$OrderStatusScalexResponseDtoImplCopyWithImpl<
          _$OrderStatusScalexResponseDtoImpl>(this, _$identity);

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

abstract class _OrderStatusScalexResponseDto
    implements OrderStatusScalexResponseDto {
  const factory _OrderStatusScalexResponseDto(
          {@JsonKey(unknownEnumValue: ScalexOrderStatus.unknown)
          required final ScalexOrderStatus status,
          final OnRampScalexDetails? onRampDetails}) =
      _$OrderStatusScalexResponseDtoImpl;

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

  @override
  @JsonKey(unknownEnumValue: ScalexOrderStatus.unknown)
  ScalexOrderStatus get status;
  @override
  OnRampScalexDetails? get onRampDetails;
  @override
  @JsonKey(ignore: true)
  _$$OrderStatusScalexResponseDtoImplCopyWith<
          _$OrderStatusScalexResponseDtoImpl>
      get copyWith => throw _privateConstructorUsedError;
}

ScalexWithdrawRequestDto _$ScalexWithdrawRequestDtoFromJson(
    Map<String, dynamic> json) {
  return _ScalexWithdrawRequestDto.fromJson(json);
}

/// @nodoc
mixin _$ScalexWithdrawRequestDto {
  String get orderId => throw _privateConstructorUsedError;
  Cluster get cluster => throw _privateConstructorUsedError;

  Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
  @JsonKey(ignore: true)
  $ScalexWithdrawRequestDtoCopyWith<ScalexWithdrawRequestDto> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $ScalexWithdrawRequestDtoCopyWith<$Res> {
  factory $ScalexWithdrawRequestDtoCopyWith(ScalexWithdrawRequestDto value,
          $Res Function(ScalexWithdrawRequestDto) then) =
      _$ScalexWithdrawRequestDtoCopyWithImpl<$Res, ScalexWithdrawRequestDto>;
  @useResult
  $Res call({String orderId, Cluster cluster});
}

/// @nodoc
class _$ScalexWithdrawRequestDtoCopyWithImpl<$Res,
        $Val extends ScalexWithdrawRequestDto>
    implements $ScalexWithdrawRequestDtoCopyWith<$Res> {
  _$ScalexWithdrawRequestDtoCopyWithImpl(this._value, this._then);

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

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? orderId = null,
    Object? cluster = null,
  }) {
    return _then(_value.copyWith(
      orderId: null == orderId
          ? _value.orderId
          : orderId // ignore: cast_nullable_to_non_nullable
              as String,
      cluster: null == cluster
          ? _value.cluster
          : cluster // ignore: cast_nullable_to_non_nullable
              as Cluster,
    ) as $Val);
  }
}

/// @nodoc
abstract class _$$ScalexWithdrawRequestDtoImplCopyWith<$Res>
    implements $ScalexWithdrawRequestDtoCopyWith<$Res> {
  factory _$$ScalexWithdrawRequestDtoImplCopyWith(
          _$ScalexWithdrawRequestDtoImpl value,
          $Res Function(_$ScalexWithdrawRequestDtoImpl) then) =
      __$$ScalexWithdrawRequestDtoImplCopyWithImpl<$Res>;
  @override
  @useResult
  $Res call({String orderId, Cluster cluster});
}

/// @nodoc
class __$$ScalexWithdrawRequestDtoImplCopyWithImpl<$Res>
    extends _$ScalexWithdrawRequestDtoCopyWithImpl<$Res,
        _$ScalexWithdrawRequestDtoImpl>
    implements _$$ScalexWithdrawRequestDtoImplCopyWith<$Res> {
  __$$ScalexWithdrawRequestDtoImplCopyWithImpl(
      _$ScalexWithdrawRequestDtoImpl _value,
      $Res Function(_$ScalexWithdrawRequestDtoImpl) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? orderId = null,
    Object? cluster = null,
  }) {
    return _then(_$ScalexWithdrawRequestDtoImpl(
      orderId: null == orderId
          ? _value.orderId
          : orderId // ignore: cast_nullable_to_non_nullable
              as String,
      cluster: null == cluster
          ? _value.cluster
          : cluster // ignore: cast_nullable_to_non_nullable
              as Cluster,
    ));
  }
}

/// @nodoc
@JsonSerializable()
class _$ScalexWithdrawRequestDtoImpl implements _ScalexWithdrawRequestDto {
  const _$ScalexWithdrawRequestDtoImpl(
      {required this.orderId, required this.cluster});

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

  @override
  final String orderId;
  @override
  final Cluster cluster;

  @override
  String toString() {
    return 'ScalexWithdrawRequestDto(orderId: $orderId, cluster: $cluster)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$ScalexWithdrawRequestDtoImpl &&
            (identical(other.orderId, orderId) || other.orderId == orderId) &&
            (identical(other.cluster, cluster) || other.cluster == cluster));
  }

  @JsonKey(ignore: true)
  @override
  int get hashCode => Object.hash(runtimeType, orderId, cluster);

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$ScalexWithdrawRequestDtoImplCopyWith<_$ScalexWithdrawRequestDtoImpl>
      get copyWith => __$$ScalexWithdrawRequestDtoImplCopyWithImpl<
          _$ScalexWithdrawRequestDtoImpl>(this, _$identity);

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

abstract class _ScalexWithdrawRequestDto implements ScalexWithdrawRequestDto {
  const factory _ScalexWithdrawRequestDto(
      {required final String orderId,
      required final Cluster cluster}) = _$ScalexWithdrawRequestDtoImpl;

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

  @override
  String get orderId;
  @override
  Cluster get cluster;
  @override
  @JsonKey(ignore: true)
  _$$ScalexWithdrawRequestDtoImplCopyWith<_$ScalexWithdrawRequestDtoImpl>
      get copyWith => throw _privateConstructorUsedError;
}

ScalexWithdrawResponseDto _$ScalexWithdrawResponseDtoFromJson(
    Map<String, dynamic> json) {
  return _WithdrawPaymentResponseDto.fromJson(json);
}

/// @nodoc
mixin _$ScalexWithdrawResponseDto {
  int get fee => throw _privateConstructorUsedError;
  String get transaction => throw _privateConstructorUsedError;
  BigInt get slot => throw _privateConstructorUsedError;

  Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
  @JsonKey(ignore: true)
  $ScalexWithdrawResponseDtoCopyWith<ScalexWithdrawResponseDto> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $ScalexWithdrawResponseDtoCopyWith<$Res> {
  factory $ScalexWithdrawResponseDtoCopyWith(ScalexWithdrawResponseDto value,
          $Res Function(ScalexWithdrawResponseDto) then) =
      _$ScalexWithdrawResponseDtoCopyWithImpl<$Res, ScalexWithdrawResponseDto>;
  @useResult
  $Res call({int fee, String transaction, BigInt slot});
}

/// @nodoc
class _$ScalexWithdrawResponseDtoCopyWithImpl<$Res,
        $Val extends ScalexWithdrawResponseDto>
    implements $ScalexWithdrawResponseDtoCopyWith<$Res> {
  _$ScalexWithdrawResponseDtoCopyWithImpl(this._value, this._then);

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

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? fee = null,
    Object? transaction = null,
    Object? slot = null,
  }) {
    return _then(_value.copyWith(
      fee: null == fee
          ? _value.fee
          : fee // ignore: cast_nullable_to_non_nullable
              as int,
      transaction: null == transaction
          ? _value.transaction
          : transaction // ignore: cast_nullable_to_non_nullable
              as String,
      slot: null == slot
          ? _value.slot
          : slot // ignore: cast_nullable_to_non_nullable
              as BigInt,
    ) as $Val);
  }
}

/// @nodoc
abstract class _$$WithdrawPaymentResponseDtoImplCopyWith<$Res>
    implements $ScalexWithdrawResponseDtoCopyWith<$Res> {
  factory _$$WithdrawPaymentResponseDtoImplCopyWith(
          _$WithdrawPaymentResponseDtoImpl value,
          $Res Function(_$WithdrawPaymentResponseDtoImpl) then) =
      __$$WithdrawPaymentResponseDtoImplCopyWithImpl<$Res>;
  @override
  @useResult
  $Res call({int fee, String transaction, BigInt slot});
}

/// @nodoc
class __$$WithdrawPaymentResponseDtoImplCopyWithImpl<$Res>
    extends _$ScalexWithdrawResponseDtoCopyWithImpl<$Res,
        _$WithdrawPaymentResponseDtoImpl>
    implements _$$WithdrawPaymentResponseDtoImplCopyWith<$Res> {
  __$$WithdrawPaymentResponseDtoImplCopyWithImpl(
      _$WithdrawPaymentResponseDtoImpl _value,
      $Res Function(_$WithdrawPaymentResponseDtoImpl) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? fee = null,
    Object? transaction = null,
    Object? slot = null,
  }) {
    return _then(_$WithdrawPaymentResponseDtoImpl(
      fee: null == fee
          ? _value.fee
          : fee // ignore: cast_nullable_to_non_nullable
              as int,
      transaction: null == transaction
          ? _value.transaction
          : transaction // ignore: cast_nullable_to_non_nullable
              as String,
      slot: null == slot
          ? _value.slot
          : slot // ignore: cast_nullable_to_non_nullable
              as BigInt,
    ));
  }
}

/// @nodoc
@JsonSerializable()
class _$WithdrawPaymentResponseDtoImpl implements _WithdrawPaymentResponseDto {
  const _$WithdrawPaymentResponseDtoImpl(
      {required this.fee, required this.transaction, required this.slot});

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

  @override
  final int fee;
  @override
  final String transaction;
  @override
  final BigInt slot;

  @override
  String toString() {
    return 'ScalexWithdrawResponseDto(fee: $fee, transaction: $transaction, slot: $slot)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$WithdrawPaymentResponseDtoImpl &&
            (identical(other.fee, fee) || other.fee == fee) &&
            (identical(other.transaction, transaction) ||
                other.transaction == transaction) &&
            (identical(other.slot, slot) || other.slot == slot));
  }

  @JsonKey(ignore: true)
  @override
  int get hashCode => Object.hash(runtimeType, fee, transaction, slot);

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$WithdrawPaymentResponseDtoImplCopyWith<_$WithdrawPaymentResponseDtoImpl>
      get copyWith => __$$WithdrawPaymentResponseDtoImplCopyWithImpl<
          _$WithdrawPaymentResponseDtoImpl>(this, _$identity);

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

abstract class _WithdrawPaymentResponseDto
    implements ScalexWithdrawResponseDto {
  const factory _WithdrawPaymentResponseDto(
      {required final int fee,
      required final String transaction,
      required final BigInt slot}) = _$WithdrawPaymentResponseDtoImpl;

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

  @override
  int get fee;
  @override
  String get transaction;
  @override
  BigInt get slot;
  @override
  @JsonKey(ignore: true)
  _$$WithdrawPaymentResponseDtoImplCopyWith<_$WithdrawPaymentResponseDtoImpl>
      get copyWith => throw _privateConstructorUsedError;
}

OnRampScalexDetails _$OnRampScalexDetailsFromJson(Map<String, dynamic> json) {
  return _OnRampScalexDetails.fromJson(json);
}

/// @nodoc
mixin _$OnRampScalexDetails {
  String get currency => throw _privateConstructorUsedError;
  String get bankName => throw _privateConstructorUsedError;
  String get bankAccount => throw _privateConstructorUsedError;
  num get fromAmount => throw _privateConstructorUsedError;
  String get fiatCurrency => throw _privateConstructorUsedError;

  Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
  @JsonKey(ignore: true)
  $OnRampScalexDetailsCopyWith<OnRampScalexDetails> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $OnRampScalexDetailsCopyWith<$Res> {
  factory $OnRampScalexDetailsCopyWith(
          OnRampScalexDetails value, $Res Function(OnRampScalexDetails) then) =
      _$OnRampScalexDetailsCopyWithImpl<$Res, OnRampScalexDetails>;
  @useResult
  $Res call(
      {String currency,
      String bankName,
      String bankAccount,
      num fromAmount,
      String fiatCurrency});
}

/// @nodoc
class _$OnRampScalexDetailsCopyWithImpl<$Res, $Val extends OnRampScalexDetails>
    implements $OnRampScalexDetailsCopyWith<$Res> {
  _$OnRampScalexDetailsCopyWithImpl(this._value, this._then);

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

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? currency = null,
    Object? bankName = null,
    Object? bankAccount = null,
    Object? fromAmount = null,
    Object? fiatCurrency = null,
  }) {
    return _then(_value.copyWith(
      currency: null == currency
          ? _value.currency
          : currency // ignore: cast_nullable_to_non_nullable
              as String,
      bankName: null == bankName
          ? _value.bankName
          : bankName // ignore: cast_nullable_to_non_nullable
              as String,
      bankAccount: null == bankAccount
          ? _value.bankAccount
          : bankAccount // ignore: cast_nullable_to_non_nullable
              as String,
      fromAmount: null == fromAmount
          ? _value.fromAmount
          : fromAmount // ignore: cast_nullable_to_non_nullable
              as num,
      fiatCurrency: null == fiatCurrency
          ? _value.fiatCurrency
          : fiatCurrency // ignore: cast_nullable_to_non_nullable
              as String,
    ) as $Val);
  }
}

/// @nodoc
abstract class _$$OnRampScalexDetailsImplCopyWith<$Res>
    implements $OnRampScalexDetailsCopyWith<$Res> {
  factory _$$OnRampScalexDetailsImplCopyWith(_$OnRampScalexDetailsImpl value,
          $Res Function(_$OnRampScalexDetailsImpl) then) =
      __$$OnRampScalexDetailsImplCopyWithImpl<$Res>;
  @override
  @useResult
  $Res call(
      {String currency,
      String bankName,
      String bankAccount,
      num fromAmount,
      String fiatCurrency});
}

/// @nodoc
class __$$OnRampScalexDetailsImplCopyWithImpl<$Res>
    extends _$OnRampScalexDetailsCopyWithImpl<$Res, _$OnRampScalexDetailsImpl>
    implements _$$OnRampScalexDetailsImplCopyWith<$Res> {
  __$$OnRampScalexDetailsImplCopyWithImpl(_$OnRampScalexDetailsImpl _value,
      $Res Function(_$OnRampScalexDetailsImpl) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? currency = null,
    Object? bankName = null,
    Object? bankAccount = null,
    Object? fromAmount = null,
    Object? fiatCurrency = null,
  }) {
    return _then(_$OnRampScalexDetailsImpl(
      currency: null == currency
          ? _value.currency
          : currency // ignore: cast_nullable_to_non_nullable
              as String,
      bankName: null == bankName
          ? _value.bankName
          : bankName // ignore: cast_nullable_to_non_nullable
              as String,
      bankAccount: null == bankAccount
          ? _value.bankAccount
          : bankAccount // ignore: cast_nullable_to_non_nullable
              as String,
      fromAmount: null == fromAmount
          ? _value.fromAmount
          : fromAmount // ignore: cast_nullable_to_non_nullable
              as num,
      fiatCurrency: null == fiatCurrency
          ? _value.fiatCurrency
          : fiatCurrency // ignore: cast_nullable_to_non_nullable
              as String,
    ));
  }
}

/// @nodoc
@JsonSerializable()
class _$OnRampScalexDetailsImpl implements _OnRampScalexDetails {
  const _$OnRampScalexDetailsImpl(
      {required this.currency,
      required this.bankName,
      required this.bankAccount,
      required this.fromAmount,
      required this.fiatCurrency});

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

  @override
  final String currency;
  @override
  final String bankName;
  @override
  final String bankAccount;
  @override
  final num fromAmount;
  @override
  final String fiatCurrency;

  @override
  String toString() {
    return 'OnRampScalexDetails(currency: $currency, bankName: $bankName, bankAccount: $bankAccount, fromAmount: $fromAmount, fiatCurrency: $fiatCurrency)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$OnRampScalexDetailsImpl &&
            (identical(other.currency, currency) ||
                other.currency == currency) &&
            (identical(other.bankName, bankName) ||
                other.bankName == bankName) &&
            (identical(other.bankAccount, bankAccount) ||
                other.bankAccount == bankAccount) &&
            (identical(other.fromAmount, fromAmount) ||
                other.fromAmount == fromAmount) &&
            (identical(other.fiatCurrency, fiatCurrency) ||
                other.fiatCurrency == fiatCurrency));
  }

  @JsonKey(ignore: true)
  @override
  int get hashCode => Object.hash(
      runtimeType, currency, bankName, bankAccount, fromAmount, fiatCurrency);

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$OnRampScalexDetailsImplCopyWith<_$OnRampScalexDetailsImpl> get copyWith =>
      __$$OnRampScalexDetailsImplCopyWithImpl<_$OnRampScalexDetailsImpl>(
          this, _$identity);

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

abstract class _OnRampScalexDetails implements OnRampScalexDetails {
  const factory _OnRampScalexDetails(
      {required final String currency,
      required final String bankName,
      required final String bankAccount,
      required final num fromAmount,
      required final String fiatCurrency}) = _$OnRampScalexDetailsImpl;

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

  @override
  String get currency;
  @override
  String get bankName;
  @override
  String get bankAccount;
  @override
  num get fromAmount;
  @override
  String get fiatCurrency;
  @override
  @JsonKey(ignore: true)
  _$$OnRampScalexDetailsImplCopyWith<_$OnRampScalexDetailsImpl> get copyWith =>
      throw _privateConstructorUsedError;
}

ScalexRateFeeResponseDto _$ScalexRateFeeResponseDtoFromJson(
    Map<String, dynamic> json) {
  return _ScalexRateFeeResponseDto.fromJson(json);
}

/// @nodoc
mixin _$ScalexRateFeeResponseDto {
  double get offRampRate => throw _privateConstructorUsedError;
  double get offRampFeePercentage => throw _privateConstructorUsedError;
  double get fixedOffRampFee => throw _privateConstructorUsedError;
  double? get onRampRate => throw _privateConstructorUsedError;
  double? get onRampFeePercentage => throw _privateConstructorUsedError;
  double? get fixedOnRampFee => throw _privateConstructorUsedError;
  double get espressoFeePercentage => throw _privateConstructorUsedError;

  Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
  @JsonKey(ignore: true)
  $ScalexRateFeeResponseDtoCopyWith<ScalexRateFeeResponseDto> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $ScalexRateFeeResponseDtoCopyWith<$Res> {
  factory $ScalexRateFeeResponseDtoCopyWith(ScalexRateFeeResponseDto value,
          $Res Function(ScalexRateFeeResponseDto) then) =
      _$ScalexRateFeeResponseDtoCopyWithImpl<$Res, ScalexRateFeeResponseDto>;
  @useResult
  $Res call(
      {double offRampRate,
      double offRampFeePercentage,
      double fixedOffRampFee,
      double? onRampRate,
      double? onRampFeePercentage,
      double? fixedOnRampFee,
      double espressoFeePercentage});
}

/// @nodoc
class _$ScalexRateFeeResponseDtoCopyWithImpl<$Res,
        $Val extends ScalexRateFeeResponseDto>
    implements $ScalexRateFeeResponseDtoCopyWith<$Res> {
  _$ScalexRateFeeResponseDtoCopyWithImpl(this._value, this._then);

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

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? offRampRate = null,
    Object? offRampFeePercentage = null,
    Object? fixedOffRampFee = null,
    Object? onRampRate = freezed,
    Object? onRampFeePercentage = freezed,
    Object? fixedOnRampFee = freezed,
    Object? espressoFeePercentage = null,
  }) {
    return _then(_value.copyWith(
      offRampRate: null == offRampRate
          ? _value.offRampRate
          : offRampRate // ignore: cast_nullable_to_non_nullable
              as double,
      offRampFeePercentage: null == offRampFeePercentage
          ? _value.offRampFeePercentage
          : offRampFeePercentage // ignore: cast_nullable_to_non_nullable
              as double,
      fixedOffRampFee: null == fixedOffRampFee
          ? _value.fixedOffRampFee
          : fixedOffRampFee // ignore: cast_nullable_to_non_nullable
              as double,
      onRampRate: freezed == onRampRate
          ? _value.onRampRate
          : onRampRate // ignore: cast_nullable_to_non_nullable
              as double?,
      onRampFeePercentage: freezed == onRampFeePercentage
          ? _value.onRampFeePercentage
          : onRampFeePercentage // ignore: cast_nullable_to_non_nullable
              as double?,
      fixedOnRampFee: freezed == fixedOnRampFee
          ? _value.fixedOnRampFee
          : fixedOnRampFee // ignore: cast_nullable_to_non_nullable
              as double?,
      espressoFeePercentage: null == espressoFeePercentage
          ? _value.espressoFeePercentage
          : espressoFeePercentage // ignore: cast_nullable_to_non_nullable
              as double,
    ) as $Val);
  }
}

/// @nodoc
abstract class _$$ScalexRateFeeResponseDtoImplCopyWith<$Res>
    implements $ScalexRateFeeResponseDtoCopyWith<$Res> {
  factory _$$ScalexRateFeeResponseDtoImplCopyWith(
          _$ScalexRateFeeResponseDtoImpl value,
          $Res Function(_$ScalexRateFeeResponseDtoImpl) then) =
      __$$ScalexRateFeeResponseDtoImplCopyWithImpl<$Res>;
  @override
  @useResult
  $Res call(
      {double offRampRate,
      double offRampFeePercentage,
      double fixedOffRampFee,
      double? onRampRate,
      double? onRampFeePercentage,
      double? fixedOnRampFee,
      double espressoFeePercentage});
}

/// @nodoc
class __$$ScalexRateFeeResponseDtoImplCopyWithImpl<$Res>
    extends _$ScalexRateFeeResponseDtoCopyWithImpl<$Res,
        _$ScalexRateFeeResponseDtoImpl>
    implements _$$ScalexRateFeeResponseDtoImplCopyWith<$Res> {
  __$$ScalexRateFeeResponseDtoImplCopyWithImpl(
      _$ScalexRateFeeResponseDtoImpl _value,
      $Res Function(_$ScalexRateFeeResponseDtoImpl) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? offRampRate = null,
    Object? offRampFeePercentage = null,
    Object? fixedOffRampFee = null,
    Object? onRampRate = freezed,
    Object? onRampFeePercentage = freezed,
    Object? fixedOnRampFee = freezed,
    Object? espressoFeePercentage = null,
  }) {
    return _then(_$ScalexRateFeeResponseDtoImpl(
      offRampRate: null == offRampRate
          ? _value.offRampRate
          : offRampRate // ignore: cast_nullable_to_non_nullable
              as double,
      offRampFeePercentage: null == offRampFeePercentage
          ? _value.offRampFeePercentage
          : offRampFeePercentage // ignore: cast_nullable_to_non_nullable
              as double,
      fixedOffRampFee: null == fixedOffRampFee
          ? _value.fixedOffRampFee
          : fixedOffRampFee // ignore: cast_nullable_to_non_nullable
              as double,
      onRampRate: freezed == onRampRate
          ? _value.onRampRate
          : onRampRate // ignore: cast_nullable_to_non_nullable
              as double?,
      onRampFeePercentage: freezed == onRampFeePercentage
          ? _value.onRampFeePercentage
          : onRampFeePercentage // ignore: cast_nullable_to_non_nullable
              as double?,
      fixedOnRampFee: freezed == fixedOnRampFee
          ? _value.fixedOnRampFee
          : fixedOnRampFee // ignore: cast_nullable_to_non_nullable
              as double?,
      espressoFeePercentage: null == espressoFeePercentage
          ? _value.espressoFeePercentage
          : espressoFeePercentage // ignore: cast_nullable_to_non_nullable
              as double,
    ));
  }
}

/// @nodoc
@JsonSerializable()
class _$ScalexRateFeeResponseDtoImpl implements _ScalexRateFeeResponseDto {
  const _$ScalexRateFeeResponseDtoImpl(
      {required this.offRampRate,
      required this.offRampFeePercentage,
      required this.fixedOffRampFee,
      this.onRampRate,
      this.onRampFeePercentage,
      this.fixedOnRampFee,
      required this.espressoFeePercentage});

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

  @override
  final double offRampRate;
  @override
  final double offRampFeePercentage;
  @override
  final double fixedOffRampFee;
  @override
  final double? onRampRate;
  @override
  final double? onRampFeePercentage;
  @override
  final double? fixedOnRampFee;
  @override
  final double espressoFeePercentage;

  @override
  String toString() {
    return 'ScalexRateFeeResponseDto(offRampRate: $offRampRate, offRampFeePercentage: $offRampFeePercentage, fixedOffRampFee: $fixedOffRampFee, onRampRate: $onRampRate, onRampFeePercentage: $onRampFeePercentage, fixedOnRampFee: $fixedOnRampFee, espressoFeePercentage: $espressoFeePercentage)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$ScalexRateFeeResponseDtoImpl &&
            (identical(other.offRampRate, offRampRate) ||
                other.offRampRate == offRampRate) &&
            (identical(other.offRampFeePercentage, offRampFeePercentage) ||
                other.offRampFeePercentage == offRampFeePercentage) &&
            (identical(other.fixedOffRampFee, fixedOffRampFee) ||
                other.fixedOffRampFee == fixedOffRampFee) &&
            (identical(other.onRampRate, onRampRate) ||
                other.onRampRate == onRampRate) &&
            (identical(other.onRampFeePercentage, onRampFeePercentage) ||
                other.onRampFeePercentage == onRampFeePercentage) &&
            (identical(other.fixedOnRampFee, fixedOnRampFee) ||
                other.fixedOnRampFee == fixedOnRampFee) &&
            (identical(other.espressoFeePercentage, espressoFeePercentage) ||
                other.espressoFeePercentage == espressoFeePercentage));
  }

  @JsonKey(ignore: true)
  @override
  int get hashCode => Object.hash(
      runtimeType,
      offRampRate,
      offRampFeePercentage,
      fixedOffRampFee,
      onRampRate,
      onRampFeePercentage,
      fixedOnRampFee,
      espressoFeePercentage);

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$ScalexRateFeeResponseDtoImplCopyWith<_$ScalexRateFeeResponseDtoImpl>
      get copyWith => __$$ScalexRateFeeResponseDtoImplCopyWithImpl<
          _$ScalexRateFeeResponseDtoImpl>(this, _$identity);

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

abstract class _ScalexRateFeeResponseDto implements ScalexRateFeeResponseDto {
  const factory _ScalexRateFeeResponseDto(
          {required final double offRampRate,
          required final double offRampFeePercentage,
          required final double fixedOffRampFee,
          final double? onRampRate,
          final double? onRampFeePercentage,
          final double? fixedOnRampFee,
          required final double espressoFeePercentage}) =
      _$ScalexRateFeeResponseDtoImpl;

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

  @override
  double get offRampRate;
  @override
  double get offRampFeePercentage;
  @override
  double get fixedOffRampFee;
  @override
  double? get onRampRate;
  @override
  double? get onRampFeePercentage;
  @override
  double? get fixedOnRampFee;
  @override
  double get espressoFeePercentage;
  @override
  @JsonKey(ignore: true)
  _$$ScalexRateFeeResponseDtoImplCopyWith<_$ScalexRateFeeResponseDtoImpl>
      get copyWith => throw _privateConstructorUsedError;
}
