PaymentMethodDetailsSwish.fromJson constructor
PaymentMethodDetailsSwish.fromJson(
- Object? json
Implementation
factory PaymentMethodDetailsSwish.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return PaymentMethodDetailsSwish(
fingerprint:
map['fingerprint'] == null ? null : (map['fingerprint'] as String),
paymentReference: map['payment_reference'] == null
? null
: (map['payment_reference'] as String),
verifiedPhoneLast4: map['verified_phone_last4'] == null
? null
: (map['verified_phone_last4'] as String),
);
}