toMap method
Implementation
Map<String, dynamic> toMap() {
return <String, dynamic>{
if (autoSync != null) 'autoSync': autoSync,
if (autoSyncThreshold != null) 'autoSyncThreshold': autoSyncThreshold,
if (disableAutoSyncOnCellular != null)
'disableAutoSyncOnCellular': disableAutoSyncOnCellular,
if (batchSync != null) 'batchSync': batchSync,
if (maxBatchSize != null) 'maxBatchSize': maxBatchSize,
if (method != null) 'method': method,
if (url != null) 'url': url,
if (params != null) 'params': params,
if (headers != null) 'headers': headers,
if (rootProperty != null) 'rootProperty': rootProperty,
if (timeout != null) 'timeout': timeout,
};
}