Attempts.fromJson constructor

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

Implementation

factory Attempts.fromJson(Map<String, Object?> json) => Attempts(
      maxAttempts: json["max_attempts"] == null
          ? null
          : (json["max_attempts"] as num).toInt(),
      attemptCount: (json["attempt_count"] as num).toInt(),
      failedAttemptCount: (json["failed_attempt_count"] as num).toInt(),
      lastAttemptedAt: json["last_attempted_at"] == null
          ? null
          : decodeDateTime(json["last_attempted_at"]),
    );