SetupAttemptPaymentMethodDetailsCardPresent.fromJson constructor

SetupAttemptPaymentMethodDetailsCardPresent.fromJson(
  1. 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']));
}