copyWith method
PaymentMethodModel
copyWith({
- String? id,
- String? description,
- String? itemType,
- PaymentMethodData? data,
Implementation
PaymentMethodModel copyWith({
String? id,
String? description,
String? itemType,
PaymentMethodData? data,
}) {
return PaymentMethodModel(
id: id ?? this.id,
description: description ?? this.description,
itemType: itemType ?? this.itemType,
data: data ?? this.data,
);
}