toJson method

Map<String, dynamic> toJson()

Converts a PhotoSize object to JSON object

Implementation

Map<String, dynamic> toJson() {
  return {
    'file_id': fileId,
    'file_unique_id': fileUniqueId,
    'width': width,
    'height': height,
    'file_size': fileSize,
  }..removeWhere(_nullFilter);
}