build method
Builds object to Map() instance;
Implementation
@override
RawApiMap build() {
if (this.name == null || this.name!.isEmpty) {
throw EmbedBuilderArgumentException._new("Author name cannot be null or empty");
}
if (this.length! > 256) {
throw EmbedBuilderArgumentException._new("Author name is too long. (256 characters limit)");
}
return <String, dynamic> {
"name": name,
if (url != null) "url": url,
if (iconUrl != null) "icon_url": iconUrl
};
}