build method
Builds object to Map() instance;
Implementation
@override
/// Builds object to Map() instance;
RawApiMap build() {
if (this.name.toString().length > 256) {
throw EmbedBuilderArgumentException._new("Field name is too long. (256 characters limit)");
}
if (this.content.toString().length > 1024) {
throw EmbedBuilderArgumentException._new("Field content is too long. (1024 characters limit)");
}
return <String, dynamic>{
"name": name != null ? name.toString() : "\u200B",
"value": content != null ? content.toString() : "\u200B",
"inline": inline ?? false,
};
}