toJson method

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

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'userTypeBot',
    if (extra != null) '@extra': extra,
    'can_be_edited': can_be_edited,
    'can_join_groups': can_join_groups,
    'can_read_all_group_messages': can_read_all_group_messages,
    'is_inline': is_inline,
    'inline_query_placeholder': inline_query_placeholder,
    'need_location': need_location,
    'can_be_added_to_attachment_menu': can_be_added_to_attachment_menu
  };
}