copyWith method

CreatePaymentResponse copyWith({
  1. String? id,
  2. SourceResult? source,
  3. String? type,
})

Implementation

CreatePaymentResponse copyWith({
  String? id,
  SourceResult? source,
  String? type,
}) {
  return CreatePaymentResponse(
    id: id ?? this.id,
    source: source ?? this.source,
    type: type ?? this.type,
  );
}