create static method

ChatEventDescriptionChanged create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "chatEventDescriptionChanged",
  3. String special_return_type = "chatEventAction",
  4. String? old_description,
  5. String? new_description,
})
override

Generate By General Universe Script Dont edit by hand or anything manual

Implementation

static ChatEventDescriptionChanged create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "chatEventDescriptionChanged",
  String special_return_type = "chatEventAction",
  String? old_description,
  String? new_description,
}) {
  // ChatEventDescriptionChanged chatEventDescriptionChanged = ChatEventDescriptionChanged({
  final Map chatEventDescriptionChanged_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "old_description": old_description,
    "new_description": new_description,
  };

  chatEventDescriptionChanged_data_create_json.removeWhere((key, value) => value == null);

  if (schemeUtilsIsSetDefaultData) {
    defaultData.forEach((key, value) {
      if (chatEventDescriptionChanged_data_create_json.containsKey(key) == false) {
        chatEventDescriptionChanged_data_create_json[key] = value;
      }
    });
  }
  return ChatEventDescriptionChanged(chatEventDescriptionChanged_data_create_json);
}