copyWith method

PaymentMethodResponse copyWith({
  1. String? id,
  2. String? type,
  3. PaymentMethodAttributesResponse? attributes,
})

Implementation

PaymentMethodResponse copyWith({
  String? id,
  String? type,
  PaymentMethodAttributesResponse? attributes,
}) {
  return PaymentMethodResponse(
    id: id ?? this.id,
    type: type ?? this.type,
    attributes: attributes ?? this.attributes,
  );
}