toJson method

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

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'chatPhotoInfo',
    if (extra != null) '@extra': extra,
    'small': small,
    'big': big,
    'minithumbnail': minithumbnail,
    'has_animation': has_animation,
    'is_personal': is_personal
  };
}