copyWith method

PaymentTokenResponse copyWith({
  1. String? id,
  2. String? method,
  3. ExtraInfo? extraInfo,
})

Implementation

PaymentTokenResponse copyWith({
  String? id,
  String? method,
  ExtraInfo? extraInfo,
}) {
  return PaymentTokenResponse(
    id: id ?? this.id,
    method: method ?? this.method,
    extraInfo: extraInfo ?? this.extraInfo,
  );
}