GetDocumentRequest.fromJson constructor
GetDocumentRequest.fromJson(
- Object? j
Implementation
factory GetDocumentRequest.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return GetDocumentRequest(
name: switch (json['name']) {
null => '',
Object $1 => decodeString($1),
},
mask: switch (json['mask']) {
null => null,
Object $1 => DocumentMask.fromJson($1),
},
transaction: switch (json['transaction']) {
null => null,
Object $1 => decodeBytes($1),
},
readTime: switch (json['readTime']) {
null => null,
Object $1 => Timestamp.fromJson($1),
},
);
}