create static method

SendLlamaLibraryMessage create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "sendLlamaLibraryMessage",
  3. String? text,
  4. bool? is_stream,
  5. String special_return_type = "ok",
  6. 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);
}