2025-11-16 11:25:27 +00:00
// GENERATED CODE - DO NOT MODIFY BY HAND
part of ' payment.dart ' ;
// **************************************************************************
// CopyWithGenerator
// **************************************************************************
abstract class _ $PaymentModelCWProxy {
PaymentModel amount ( String amount ) ;
PaymentModel currency ( String currency ) ;
PaymentModel status ( PaymentStatus status ) ;
PaymentModel paymentSystem ( PaymentSystem paymentSystem ) ;
2025-12-13 20:55:50 +00:00
PaymentModel userId ( String userId ) ;
2025-11-16 11:25:27 +00:00
PaymentModel date ( DateTime date ) ;
PaymentModel products ( List < MnemoCardsProductModelBase > products ) ;
PaymentModel externalToken ( String ? externalToken ) ;
PaymentModel meta ( String ? meta ) ;
2025-12-13 20:55:50 +00:00
PaymentModel id ( String ? id ) ;
2025-11-16 11:25:27 +00:00
2025-12-13 20:55:50 +00:00
/// Creates a new instance with the provided field values.
/// Passing `null` to a nullable field nullifies it, while `null` for a non-nullable field is ignored. To update a single field use `PaymentModel(...).copyWith.fieldName(value)`.
2025-11-16 11:25:27 +00:00
///
2025-12-13 20:55:50 +00:00
/// Example:
2025-11-16 11:25:27 +00:00
/// ```dart
/// PaymentModel(...).copyWith(id: 12, name: "My name")
2025-12-13 20:55:50 +00:00
/// ```
2025-11-16 11:25:27 +00:00
PaymentModel call ( {
2025-12-13 20:55:50 +00:00
String amount ,
String currency ,
PaymentStatus status ,
PaymentSystem paymentSystem ,
String userId ,
DateTime date ,
List < MnemoCardsProductModelBase > products ,
2025-11-16 11:25:27 +00:00
String ? externalToken ,
String ? meta ,
2025-12-13 20:55:50 +00:00
String ? id ,
2025-11-16 11:25:27 +00:00
} ) ;
}
2025-12-13 20:55:50 +00:00
/// Callable proxy for `copyWith` functionality.
/// Use as `instanceOfPaymentModel.copyWith(...)` or call `instanceOfPaymentModel.copyWith.fieldName(value)` for a single field.
2025-11-16 11:25:27 +00:00
class _ $PaymentModelCWProxyImpl implements _ $PaymentModelCWProxy {
const _ $PaymentModelCWProxyImpl ( this . _value ) ;
final PaymentModel _value ;
@ override
2025-12-13 20:55:50 +00:00
PaymentModel amount ( String amount ) = > call ( amount: amount ) ;
2025-11-16 11:25:27 +00:00
@ override
2025-12-13 20:55:50 +00:00
PaymentModel currency ( String currency ) = > call ( currency: currency ) ;
2025-11-16 11:25:27 +00:00
@ override
2025-12-13 20:55:50 +00:00
PaymentModel status ( PaymentStatus status ) = > call ( status: status ) ;
2025-11-16 11:25:27 +00:00
@ override
PaymentModel paymentSystem ( PaymentSystem paymentSystem ) = >
2025-12-13 20:55:50 +00:00
call ( paymentSystem: paymentSystem ) ;
2025-11-16 11:25:27 +00:00
@ override
2025-12-13 20:55:50 +00:00
PaymentModel userId ( String userId ) = > call ( userId: userId ) ;
2025-11-16 11:25:27 +00:00
@ override
2025-12-13 20:55:50 +00:00
PaymentModel date ( DateTime date ) = > call ( date: date ) ;
2025-11-16 11:25:27 +00:00
@ override
PaymentModel products ( List < MnemoCardsProductModelBase > products ) = >
2025-12-13 20:55:50 +00:00
call ( products: products ) ;
2025-11-16 11:25:27 +00:00
@ override
PaymentModel externalToken ( String ? externalToken ) = >
2025-12-13 20:55:50 +00:00
call ( externalToken: externalToken ) ;
2025-11-16 11:25:27 +00:00
@ override
2025-12-13 20:55:50 +00:00
PaymentModel meta ( String ? meta ) = > call ( meta: meta ) ;
2025-11-16 11:25:27 +00:00
@ override
2025-12-13 20:55:50 +00:00
PaymentModel id ( String ? id ) = > call ( id: id ) ;
2025-11-16 11:25:27 +00:00
@ override
2025-12-13 20:55:50 +00:00
/// Creates a new instance with the provided field values.
/// Passing `null` to a nullable field nullifies it, while `null` for a non-nullable field is ignored. To update a single field use `PaymentModel(...).copyWith.fieldName(value)`.
2025-11-16 11:25:27 +00:00
///
2025-12-13 20:55:50 +00:00
/// Example:
2025-11-16 11:25:27 +00:00
/// ```dart
/// PaymentModel(...).copyWith(id: 12, name: "My name")
2025-12-13 20:55:50 +00:00
/// ```
2025-11-16 11:25:27 +00:00
PaymentModel call ( {
Object ? amount = const $CopyWithPlaceholder ( ) ,
Object ? currency = const $CopyWithPlaceholder ( ) ,
Object ? status = const $CopyWithPlaceholder ( ) ,
Object ? paymentSystem = const $CopyWithPlaceholder ( ) ,
Object ? userId = const $CopyWithPlaceholder ( ) ,
Object ? date = const $CopyWithPlaceholder ( ) ,
Object ? products = const $CopyWithPlaceholder ( ) ,
Object ? externalToken = const $CopyWithPlaceholder ( ) ,
Object ? meta = const $CopyWithPlaceholder ( ) ,
Object ? id = const $CopyWithPlaceholder ( ) ,
} ) {
return PaymentModel (
amount: amount = = const $CopyWithPlaceholder ( ) | | amount = = null
? _value . amount
// ignore: cast_nullable_to_non_nullable
: amount as String ,
currency: currency = = const $CopyWithPlaceholder ( ) | | currency = = null
? _value . currency
// ignore: cast_nullable_to_non_nullable
: currency as String ,
status: status = = const $CopyWithPlaceholder ( ) | | status = = null
? _value . status
// ignore: cast_nullable_to_non_nullable
: status as PaymentStatus ,
paymentSystem:
paymentSystem = = const $CopyWithPlaceholder ( ) | | paymentSystem = = null
2025-12-13 20:55:50 +00:00
? _value . paymentSystem
// ignore: cast_nullable_to_non_nullable
: paymentSystem as PaymentSystem ,
2025-11-16 11:25:27 +00:00
userId: userId = = const $CopyWithPlaceholder ( ) | | userId = = null
? _value . userId
// ignore: cast_nullable_to_non_nullable
2025-12-13 20:55:50 +00:00
: userId as String ,
2025-11-16 11:25:27 +00:00
date: date = = const $CopyWithPlaceholder ( ) | | date = = null
? _value . date
// ignore: cast_nullable_to_non_nullable
: date as DateTime ,
products: products = = const $CopyWithPlaceholder ( ) | | products = = null
? _value . products
// ignore: cast_nullable_to_non_nullable
: products as List < MnemoCardsProductModelBase > ,
externalToken: externalToken = = const $CopyWithPlaceholder ( )
? _value . externalToken
// ignore: cast_nullable_to_non_nullable
: externalToken as String ? ,
meta: meta = = const $CopyWithPlaceholder ( )
? _value . meta
// ignore: cast_nullable_to_non_nullable
: meta as String ? ,
id: id = = const $CopyWithPlaceholder ( )
? _value . id
// ignore: cast_nullable_to_non_nullable
2025-12-13 20:55:50 +00:00
: id as String ? ,
2025-11-16 11:25:27 +00:00
) ;
}
}
extension $PaymentModelCopyWith on PaymentModel {
2025-12-13 20:55:50 +00:00
/// Returns a callable class used to build a new instance with modified fields.
/// Example: `instanceOfPaymentModel.copyWith(...)` or `instanceOfPaymentModel.copyWith.fieldName(...)`.
2025-11-16 11:25:27 +00:00
// ignore: library_private_types_in_public_api
_ $PaymentModelCWProxy get copyWith = > _ $PaymentModelCWProxyImpl ( this ) ;
}