SetupIntentNextActionVerifyWithMicrodeposits.fromJson constructor

SetupIntentNextActionVerifyWithMicrodeposits.fromJson(
  1. Object? json
)

Implementation

factory SetupIntentNextActionVerifyWithMicrodeposits.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return SetupIntentNextActionVerifyWithMicrodeposits(
    arrivalDate: DateTime.fromMillisecondsSinceEpoch(
        (map['arrival_date'] as int).toInt()),
    hostedVerificationUrl: (map['hosted_verification_url'] as String),
    microdepositType: map['microdeposit_type'] == null
        ? null
        : PaymentIntentNextActionVerifyWithMicrodepositsMicrodepositType
            .fromJson(map['microdeposit_type']),
  );
}