toJson method

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

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'basicGroup',
    if (extra != null) '@extra': extra,
    'id': id,
    'member_count': member_count,
    'status': status,
    'is_active': is_active,
    'upgraded_to_supergroup_id': upgraded_to_supergroup_id
  };
}