Document.fromJson constructor
Implementation
factory Document.fromJson(Map<String, dynamic> json) {
return Document(
name: json['name'] ?? '',
displayName: json['displayName'] ?? '',
customMetadata:
decodeListMessage(json['customMetadata'], CustomMetadata.fromJson) ??
[],
updateTime: decodeCustom(json['updateTime'], Timestamp.fromJson),
createTime: decodeCustom(json['createTime'], Timestamp.fromJson),
);
}