toJson method

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

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'setStoryReaction',
    if (extra != null) '@extra': extra,
    'story_sender_chat_id': story_sender_chat_id,
    'story_id': story_id,
    'reaction_type': reaction_type,
    'update_recent_reactions': update_recent_reactions
  };
}