create static method

UpdateServiceNotification create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "updateServiceNotification",
  3. String special_return_type = "update",
  4. String? type,
  5. MessageContent? content,
})
override

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

Implementation

static UpdateServiceNotification create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "updateServiceNotification",
  String special_return_type = "update",
  String? type,
  MessageContent? content,
}) {
  // UpdateServiceNotification updateServiceNotification = UpdateServiceNotification({
  final Map updateServiceNotification_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "type": type,
    "content": (content != null) ? content.toJson() : null,
  };

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

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