create static method

TemplateData create({
  1. String special_type = "TemplateData",
  2. String? name,
  3. String? path,
  4. List<int>? data,
})
override

return original data json

Implementation

static TemplateData create({
  String special_type = "TemplateData",
  String? name,
  String? path,
  List<int>? data,
}) {
  // TemplateData templateData = TemplateData({
  Map templateData_data_create_json = {
    "@type": special_type,
    "name": name,
    "path": path,
    "data": data,
  };

  templateData_data_create_json.removeWhere((key, value) => value == null);
  TemplateData templateData_data_create =
      TemplateData(templateData_data_create_json);

  return templateData_data_create;
}