SetupAttemptPaymentMethodDetailsCardPresent.fromJson constructor
SetupAttemptPaymentMethodDetailsCardPresent.fromJson(
- Object? json
Implementation
factory SetupAttemptPaymentMethodDetailsCardPresent.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return SetupAttemptPaymentMethodDetailsCardPresent(
generatedCard: map['generated_card'] == null
? null
: PaymentMethodOrId.fromJson(map['generated_card']));
}