copyWith method

SourceAttributes copyWith({
  1. String? type,
  2. double? amount,
  3. String? currency,
  4. Redirect? redirect,
  5. PayMongoBilling? billing,
})

Implementation

SourceAttributes copyWith({
  String? type,
  double? amount,
  String? currency,
  Redirect? redirect,
  PayMongoBilling? billing,
}) {
  return SourceAttributes(
    type: type ?? this.type,
    amount: amount ?? this.amount,
    currency: currency ?? this.currency,
    redirect: redirect ?? this.redirect,
    billing: billing ?? this.billing,
  );
}