copyWith method

PaymentDataResponse copyWith({
  1. String? id,
  2. String? type,
  3. PaymentAttributesResponse? attributes,
})

Implementation

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