NextActionConfirm.fromJson constructor

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

Implementation

factory NextActionConfirm.fromJson(Map<String, Object?> json) =>
    NextActionConfirm(
      expiresAt: decodeDateTime(json["expires_at"]),
      scheme: json["scheme"] as String,
      request: json["request"] == null
          ? null
          : NextActionConfirmRequest.fromJson(
              (json["request"] as Map).cast<String, Object?>(),
            ),
      attempt: json["attempt"] == null
          ? null
          : NextActionConfirmAttempt.fromJson(
              (json["attempt"] as Map).cast<String, Object?>(),
            ),
      confirmed: json["confirmed"] as bool,
      status: json["status"] as String,
    );