create static method

FoundPosition create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "foundPosition",
  3. String special_return_type = "foundPosition",
  4. num? position,
})
override

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

Implementation

static FoundPosition create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "foundPosition",
  String special_return_type = "foundPosition",
  num? position,
}) {
  // FoundPosition foundPosition = FoundPosition({
  final Map foundPosition_data_create_json = {
    "@type": special_type,
    "@return_type": special_return_type,
    "position": position,
  };

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

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