copyWith method

PaymentMethodModel copyWith({
  1. String? id,
  2. String? description,
  3. String? itemType,
  4. 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,
  );
}