toJson method

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

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'inputMessagePhoto',
    if (extra != null) '@extra': extra,
    'photo': photo,
    'thumbnail': thumbnail,
    'added_sticker_file_ids': added_sticker_file_ids,
    'width': width,
    'height': height,
    'caption': caption,
    'self_destruct_type': self_destruct_type,
    'has_spoiler': has_spoiler
  };
}