toJson method

Map<String, dynamic> toJson()

Converts a Animation to a JSON Map.

Implementation

Map<String, dynamic> toJson() {
  return {
    'file_id': fileId,
    'file_unique_id': fileUniqueId,
    'width': width,
    'height': height,
    'duration': duration,
    'thumbnail': thumbnail?.toJson(),
    'file_name': fileName,
    'mime_type': mimeType,
    'file_size': fileSize,
  }..removeWhere(_nullFilter);
}