toMap method
Returns the map representation of a Batchable instance.
Implementation
@override
Map<String, dynamic> toMap() {
return <String, dynamic>{
'requestName': requestName,
'fileId': fileId,
'file': file?.toMap(),
'fileContent': fileContent?.toMap(),
'containers': containers,
'acknowledgeDownloadRisk': acknowledgeDownloadRisk,
'orderBy': orderBy,
'queryParam': queryParam,
'pageSize': pageSize,
'cursor': cursor,
'channel': channel?.toMap(),
'addParentFolder': addParentFolder,
'removeParentFolder': removeParentFolder,
'fields': fields,
'form': form,
'parameters': parameters,
'prettyPrint': prettyPrint,
'quotaId': quotaId,
}..removeWhere((String k, dynamic v) => v == null);
}