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