DocumentVersionMetadata.fromJson constructor
DocumentVersionMetadata.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DocumentVersionMetadata.fromJson(Map<String, dynamic> json) {
return DocumentVersionMetadata(
contentCreatedTimestamp:
timeStampFromJson(json['ContentCreatedTimestamp']),
contentModifiedTimestamp:
timeStampFromJson(json['ContentModifiedTimestamp']),
contentType: json['ContentType'] as String?,
createdTimestamp: timeStampFromJson(json['CreatedTimestamp']),
creatorId: json['CreatorId'] as String?,
id: json['Id'] as String?,
modifiedTimestamp: timeStampFromJson(json['ModifiedTimestamp']),
name: json['Name'] as String?,
signature: json['Signature'] as String?,
size: json['Size'] as int?,
source: (json['Source'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k.toDocumentSourceType(), e as String)),
status: (json['Status'] as String?)?.toDocumentStatusType(),
thumbnail: (json['Thumbnail'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k.toDocumentThumbnailType(), e as String)),
);
}