toJson method

  1. @override
Map<String, dynamic> toJson()
override

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'chatPhoto',
    if (extra != null) '@extra': extra,
    'id': id,
    'added_date': added_date,
    'minithumbnail': minithumbnail,
    'sizes': sizes,
    'animation': animation,
    'small_animation': small_animation,
    'sticker': sticker
  };
}