SelfSubjectReviewStatus.fromJson constructor

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

Creates a SelfSubjectReviewStatus from JSON data.

Implementation

factory SelfSubjectReviewStatus.fromJson(Map<String, dynamic> json) {
  final tempUserInfoJson = json['userInfo'];

  final UserInfo? tempUserInfo =
      tempUserInfoJson != null ? UserInfo.fromJson(tempUserInfoJson) : null;

  return SelfSubjectReviewStatus(
    userInfo: tempUserInfo,
  );
}