VerificationAttempt.fromJson constructor

VerificationAttempt.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory VerificationAttempt.fromJson(Map<String, Object?> json) =>
    VerificationAttempt(
      attemptedAt: decodeDateTime(json["attempted_at"]),
      id: json["id"] as String,
      presentedToken: json["presented_token"] as String,
      recipient: json["recipient"] as String,
      result: VerificationAttemptResult.fromJson(
        (json["result"] as Map).cast<String, Object?>(),
      ),
    );