build method

  1. @override
RawApiMap build()
override

Returns built response for api

Implementation

@override
RawApiMap build() => {
      "label": label,
      "value": value,
      "default": isDefault,
      if (emoji != null)
        "emoji": {
          if (emoji is IBaseGuildEmoji) "id": (emoji as IBaseGuildEmoji).id.toString(),
          if (emoji is UnicodeEmoji) "name": (emoji as UnicodeEmoji).code,
          if (emoji is IGuildEmoji) "animated": (emoji as IGuildEmoji).animated,
        },
      if (description != null) "description": description,
    };