toJson method

Map<String, dynamic> toJson()

Converts a ChatPhoto to a Map for JSON encoding.

Implementation

Map<String, dynamic> toJson() {
  Map<String, dynamic> data = <String, dynamic>{};
  data['small_file_id'] = smallFileId;
  data['small_file_unique_id'] = smallFileUniqueId;
  data['big_file_id'] = bigFileId;
  data['big_file_unique_id'] = bigFileUniqueId;
  data.removeWhere(_nullFilter);
  return data;
}