create static method

UpdateNewCustomQuery create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "updateNewCustomQuery",
  3. String special_return_type = "update",
  4. num? id,
  5. String? data,
  6. num? timeout,
})
override

Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual

Implementation

static UpdateNewCustomQuery create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "updateNewCustomQuery",
  String special_return_type = "update",
  num? id,
  String? data,
  num? timeout,
}) {
  // UpdateNewCustomQuery updateNewCustomQuery = UpdateNewCustomQuery({
  final Map updateNewCustomQuery_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "id": id,
    "data": data,
    "timeout": timeout,
  };

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

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