toJson method

Map toJson()

Creates a json from the object

Implementation

Map toJson() {
  return {
    'file_id': fileId,
    'file_unique_id': fileUniqueId,
    'length': length,
    'duration': duration,
    'thumb': thumb,
    'file_size': fileSize,
  }..removeWhere((_, v) => v == null);
}