toJson property

Map<String, dynamic> get toJson

Implementation

Map<String, dynamic> get toJson => {
  'name': name,
  'icon': icon,
  'verification_level': verificationLevel?.value,
  'default_message_notifications': defaultMessageNotifications?.value,
  'explicit_content_filter': explicitContentFilter?.value,
  'channels': channels.map((channel) => channel.payload).toList(),
  'system_channel_flags': systemChannelFlags?.value,
};