build method

  1. @override
RawApiMap build()
override

Builds object to Map() instance;

Implementation

@override

/// Builds object to Map() instance;
RawApiMap build() {
  if (this.text != null && this.length! > 2048) {
    throw EmbedBuilderArgumentException._new("Footer text is too long. (1024 characters limit)");
  }

  return <String, dynamic>{if (text != null) "text": text, if (iconUrl != null) "icon_url": iconUrl};
}