create static method

VectorPathCommand create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "vectorPathCommand",
  3. bool special_is_json_scheme_class = true,
  4. String special_return_type = "vectorPathCommand",
  5. VectorPathCommandLine? vector_path_command_line,
  6. VectorPathCommandCubicBezierCurve? vector_path_command_cubic_bezier_curve,
})
override

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

Implementation

static VectorPathCommand create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "vectorPathCommand",
  bool special_is_json_scheme_class = true,
  String special_return_type = "vectorPathCommand",
  VectorPathCommandLine? vector_path_command_line,
  VectorPathCommandCubicBezierCurve? vector_path_command_cubic_bezier_curve,
}) {
  // VectorPathCommand vectorPathCommand = VectorPathCommand({
  final Map vectorPathCommand_data_create_json = {
    "@type": special_type,
    "@is_json_scheme_class": special_is_json_scheme_class,
    "@return_type": special_return_type,
    "vector_path_command_line": (vector_path_command_line != null) ? vector_path_command_line.toJson() : null,
    "vector_path_command_cubic_bezier_curve": (vector_path_command_cubic_bezier_curve != null) ? vector_path_command_cubic_bezier_curve.toJson() : null,
  };

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

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