create static method
SendLlamaLibraryMessage
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "sendLlamaLibraryMessage",
- String? text,
- bool? is_stream,
- String special_return_type = "ok",
- String special_extra = "",
override
Generated By General Library Documentation Undocument By General Corporation & Global Corporation & General Developer
Implementation
static SendLlamaLibraryMessage create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "sendLlamaLibraryMessage",
String? text,
bool? is_stream,
String special_return_type = "ok",
String special_extra = "",
}) {
// SendLlamaLibraryMessage sendLlamaLibraryMessage = SendLlamaLibraryMessage({
final Map sendLlamaLibraryMessage_data_create_json = {
"@type": special_type,
"text": text,
"is_stream": is_stream,
"@return_type": special_return_type,
"@extra": special_extra,
};
sendLlamaLibraryMessage_data_create_json
.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (sendLlamaLibraryMessage_data_create_json.containsKey(key) ==
false) {
sendLlamaLibraryMessage_data_create_json[key] = value;
}
});
}
return SendLlamaLibraryMessage(sendLlamaLibraryMessage_data_create_json);
}