toJson method

Map toJson()

Creates a json from the object

Implementation

Map toJson() {
  return {
    'file_id': fileId,
    'file_unique_id': fileUniqueId,
    'width': width,
    'height': height,
    'duration': duration,
    'thumb': thumb,
    'file_name': fileName,
    'mime_type': mimeType,
    'file_size': fileSize,
  }..removeWhere((_, v) => v == null);
}