GetDocumentResult.fromJson constructor
GetDocumentResult.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GetDocumentResult.fromJson(Map<String, dynamic> json) {
return GetDocumentResult(
attachmentsContent: (json['AttachmentsContent'] as List?)
?.whereNotNull()
.map((e) => AttachmentContent.fromJson(e as Map<String, dynamic>))
.toList(),
content: json['Content'] as String?,
documentFormat: (json['DocumentFormat'] as String?)?.toDocumentFormat(),
documentType: (json['DocumentType'] as String?)?.toDocumentType(),
documentVersion: json['DocumentVersion'] as String?,
name: json['Name'] as String?,
requires: (json['Requires'] as List?)
?.whereNotNull()
.map((e) => DocumentRequires.fromJson(e as Map<String, dynamic>))
.toList(),
reviewStatus: (json['ReviewStatus'] as String?)?.toReviewStatus(),
status: (json['Status'] as String?)?.toDocumentStatus(),
statusInformation: json['StatusInformation'] as String?,
versionName: json['VersionName'] as String?,
);
}