toJson method

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

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'chatEventLogFilters',
    if (extra != null) '@extra': extra,
    'message_edits': message_edits,
    'message_deletions': message_deletions,
    'message_pins': message_pins,
    'member_joins': member_joins,
    'member_leaves': member_leaves,
    'member_invites': member_invites,
    'member_promotions': member_promotions,
    'member_restrictions': member_restrictions,
    'info_changes': info_changes,
    'setting_changes': setting_changes,
    'invite_link_changes': invite_link_changes,
    'video_chat_changes': video_chat_changes,
    'forum_changes': forum_changes
  };
}