VerificationSession.fromJson constructor
Implementation
factory VerificationSession.fromJson(
Map<String, Object?> json,
) =>
VerificationSession(
paymentMethodId: json["payment_method_id"] as String,
status: json["status"] as String,
tokenSentAt: json["token_sent_at"] == null
? null
: decodeDateTime(json["token_sent_at"]),
expiresAt: json["expires_at"] == null
? null
: decodeDateTime(json["expires_at"]),
delivery: json["delivery"] == null
? null
: VerificationDelivery.fromJson(
(json["delivery"] as Map).cast<String, Object?>(),
),
);