ListDocumentsRequest.fromJson constructor
ListDocumentsRequest.fromJson(
- Object? j
Implementation
factory ListDocumentsRequest.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return ListDocumentsRequest(
parent: switch (json['parent']) {
null => '',
Object $1 => decodeString($1),
},
collectionId: switch (json['collectionId']) {
null => '',
Object $1 => decodeString($1),
},
pageSize: switch (json['pageSize']) {
null => 0,
Object $1 => decodeInt($1),
},
pageToken: switch (json['pageToken']) {
null => '',
Object $1 => decodeString($1),
},
orderBy: switch (json['orderBy']) {
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),
},
showMissing: switch (json['showMissing']) {
null => false,
Object $1 => decodeBool($1),
},
);
}