create static method
TemplateDatas
create({
- String special_type = "TemplateDatas",
- int? count,
- 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;
}