FilesRequest.fromMap constructor
FilesRequest.fromMap(
- Map<String, dynamic> map
)
Implementation
factory FilesRequest.fromMap(Map<String, dynamic> map) {
return FilesRequest._(
fileId: map['fileId'],
file: map['file'] == null ? null : DriveFile.fromMap(map['file']),
fileContent: map['fileContent'] == null
? null
: DriveFileContent.fromMap(map['fileContent']),
containers: map['containers'],
acknowledgeDownloadRisk: map['acknowledgeDownloadRisk'],
orderBy: map['orderBy'],
queryParam: map['queryParam'],
pageSize: map['pageSize'],
cursor: map['cursor'],
channel:
map['channel'] == null ? null : DriveChannel.fromMap(map['channel']),
addParentFolder: map['addParentFolder'],
removeParentFolder: map['removeParentFolder'],
fields: map['fields'],
form: map['form'],
parameters: map['parameters'],
prettyPrint: map['prettyPrint'],
quotaId: map['quotaId'],
);
}