DocumentReviewerResponseSource.fromJson constructor

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

Implementation

factory DocumentReviewerResponseSource.fromJson(Map<String, dynamic> json) {
  return DocumentReviewerResponseSource(
    comment: (json['Comment'] as List?)
        ?.whereNotNull()
        .map((e) =>
            DocumentReviewCommentSource.fromJson(e as Map<String, dynamic>))
        .toList(),
    createTime: timeStampFromJson(json['CreateTime']),
    reviewStatus: (json['ReviewStatus'] as String?)?.toReviewStatus(),
    reviewer: json['Reviewer'] as String?,
    updatedTime: timeStampFromJson(json['UpdatedTime']),
  );
}