build method

  1. @override
RawApiMap build()
override

Returns built response for api

Implementation

@override
RawApiMap build() =>
  <String, dynamic>{
    if (name != null) "name": name,
    if (region != null) "region": region,
    if (icon != null) "icon": icon,
    if (verificationLevel != null) "verification_level": verificationLevel,
    if (defaultMessageNotifications != null) "default_message_notifications": defaultMessageNotifications,
    if (explicitContentFilter != null) "explicit_content_filter": explicitContentFilter,
    if (roles != null) "roles": _genIterable(roles!),
    if (channels != null) "channels": _genIterable(channels!)
  };