SubjectAccessReviewStatus.fromJson constructor

SubjectAccessReviewStatus.fromJson(
  1. Map<String, dynamic> json
)

Creates a SubjectAccessReviewStatus from JSON data.

Implementation

factory SubjectAccessReviewStatus.fromJson(Map<String, dynamic> json) {
  final tempAllowedJson = json['allowed'];
  final tempDeniedJson = json['denied'];
  final tempEvaluationErrorJson = json['evaluationError'];
  final tempReasonJson = json['reason'];

  final bool tempAllowed = tempAllowedJson;
  final bool? tempDenied = tempDeniedJson;
  final String? tempEvaluationError = tempEvaluationErrorJson;
  final String? tempReason = tempReasonJson;

  return SubjectAccessReviewStatus(
    allowed: tempAllowed,
    denied: tempDenied,
    evaluationError: tempEvaluationError,
    reason: tempReason,
  );
}