create static method

MaskPoint create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "maskPoint",
  3. bool special_is_json_scheme_class = true,
  4. String special_return_type = "maskPoint",
  5. MaskPointForehead? mask_point_forehead,
  6. MaskPointEyes? mask_point_eyes,
  7. MaskPointMouth? mask_point_mouth,
  8. MaskPointChin? mask_point_chin,
})
override

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

Implementation

static MaskPoint create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "maskPoint",
  bool special_is_json_scheme_class = true,
  String special_return_type = "maskPoint",
  MaskPointForehead? mask_point_forehead,
  MaskPointEyes? mask_point_eyes,
  MaskPointMouth? mask_point_mouth,
  MaskPointChin? mask_point_chin,
}) {
  // MaskPoint maskPoint = MaskPoint({
  final Map maskPoint_data_create_json = {
    "@type": special_type,
    "@is_json_scheme_class": special_is_json_scheme_class,
    "@return_type": special_return_type,
    "mask_point_forehead": (mask_point_forehead != null) ? mask_point_forehead.toJson() : null,
    "mask_point_eyes": (mask_point_eyes != null) ? mask_point_eyes.toJson() : null,
    "mask_point_mouth": (mask_point_mouth != null) ? mask_point_mouth.toJson() : null,
    "mask_point_chin": (mask_point_chin != null) ? mask_point_chin.toJson() : null,
  };

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

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