PaymentIntentCardPresent.fromJson constructor

PaymentIntentCardPresent.fromJson(
  1. Object? json
)

Implementation

factory PaymentIntentCardPresent.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentIntentCardPresent(
    requestExtendedAuthorization:
        map['request_extended_authorization'] == null
            ? null
            : (map['request_extended_authorization'] as bool),
    requestIncrementalAuthorizationSupport:
        map['request_incremental_authorization_support'] == null
            ? null
            : (map['request_incremental_authorization_support'] as bool),
  );
}