// 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); PaymentModel userId(String userId); PaymentModel date(DateTime date); PaymentModel products(List products); PaymentModel externalToken(String? externalToken); PaymentModel meta(String? meta); PaymentModel id(String? id); /// 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)`. /// /// Example: /// ```dart /// PaymentModel(...).copyWith(id: 12, name: "My name") /// ``` PaymentModel call({ String amount, String currency, PaymentStatus status, PaymentSystem paymentSystem, String userId, DateTime date, List products, String? externalToken, String? meta, String? id, }); } /// Callable proxy for `copyWith` functionality. /// Use as `instanceOfPaymentModel.copyWith(...)` or call `instanceOfPaymentModel.copyWith.fieldName(value)` for a single field. class _$PaymentModelCWProxyImpl implements _$PaymentModelCWProxy { const _$PaymentModelCWProxyImpl(this._value); final PaymentModel _value; @override PaymentModel amount(String amount) => call(amount: amount); @override PaymentModel currency(String currency) => call(currency: currency); @override PaymentModel status(PaymentStatus status) => call(status: status); @override PaymentModel paymentSystem(PaymentSystem paymentSystem) => call(paymentSystem: paymentSystem); @override PaymentModel userId(String userId) => call(userId: userId); @override PaymentModel date(DateTime date) => call(date: date); @override PaymentModel products(List products) => call(products: products); @override PaymentModel externalToken(String? externalToken) => call(externalToken: externalToken); @override PaymentModel meta(String? meta) => call(meta: meta); @override PaymentModel id(String? id) => call(id: id); @override /// 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)`. /// /// Example: /// ```dart /// PaymentModel(...).copyWith(id: 12, name: "My name") /// ``` 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 ? _value.paymentSystem // ignore: cast_nullable_to_non_nullable : paymentSystem as PaymentSystem, userId: userId == const $CopyWithPlaceholder() || userId == null ? _value.userId // ignore: cast_nullable_to_non_nullable : userId as String, 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, 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 : id as String?, ); } } extension $PaymentModelCopyWith on PaymentModel { /// Returns a callable class used to build a new instance with modified fields. /// Example: `instanceOfPaymentModel.copyWith(...)` or `instanceOfPaymentModel.copyWith.fieldName(...)`. // ignore: library_private_types_in_public_api _$PaymentModelCWProxy get copyWith => _$PaymentModelCWProxyImpl(this); }