create static method

TemplateDatas create({
  1. String special_type = "TemplateDatas",
  2. int? count,
  3. List<TemplateData>? templates,
})
override

return original data json

Implementation

static TemplateDatas create({
  String special_type = "TemplateDatas",
  int? count,
  List<TemplateData>? templates,
}) {
  // TemplateDatas templateDatas = TemplateDatas({
  Map templateDatas_data_create_json = {
    "@type": special_type,
    "count": count,
    "templates": (templates != null) ? templates.toJson() : null,
  };

  templateDatas_data_create_json.removeWhere((key, value) => value == null);
  TemplateDatas templateDatas_data_create =
      TemplateDatas(templateDatas_data_create_json);

  return templateDatas_data_create;
}