toMap method

Map<String, dynamic> toMap({
  1. bool withId = true,
})

If withId is true, will send the id in the map

Implementation

Map<String, dynamic> toMap({bool withId = true}) {
  return {
    if (withId) 'Id': id,
    'SyncToken': syncToken,
    'FileName': fileName,
    'Note': note,
    'Category': category,
    'ContentType': contentType,
    'Size': size,
    'TempDownloadUri': tempDownloadUri,
    'ThumbnailTempDownloadUri': thumbnailTempDownloadUri,
  };
}