toJson method

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

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'story',
    if (extra != null) '@extra': extra,
    'id': id,
    'sender_chat_id': sender_chat_id,
    'date': date,
    'is_being_sent': is_being_sent,
    'is_being_edited': is_being_edited,
    'is_edited': is_edited,
    'is_pinned': is_pinned,
    'is_visible_only_for_self': is_visible_only_for_self,
    'can_be_deleted': can_be_deleted,
    'can_be_edited': can_be_edited,
    'can_be_forwarded': can_be_forwarded,
    'can_be_replied': can_be_replied,
    'can_toggle_is_pinned': can_toggle_is_pinned,
    'can_get_viewers': can_get_viewers,
    'has_expired_viewers': has_expired_viewers,
    'interaction_info': interaction_info,
    'chosen_reaction_type': chosen_reaction_type,
    'privacy_settings': privacy_settings,
    'content': content,
    'areas': areas,
    'caption': caption
  };
}