create static method

DockerPlugin create({
  1. String special_type = "DockerPlugin",
  2. String? name,
  3. String? script,
})
override

return original data json

Implementation

static DockerPlugin create({
  String special_type = "DockerPlugin",
  String? name,
  String? script,
}) {
  // DockerPlugin dockerPlugin = DockerPlugin({
  Map dockerPlugin_data_create_json = {
    "@type": special_type,
    "name": name,
    "script": script,
  };

  dockerPlugin_data_create_json.removeWhere((key, value) => value == null);
  DockerPlugin dockerPlugin_data_create =
      DockerPlugin(dockerPlugin_data_create_json);

  return dockerPlugin_data_create;
}