import 'package:electronic_assistant/data/bean/template_bean.dart'; import 'package:json_annotation/json_annotation.dart'; part 'template_list_response.g.dart'; @JsonSerializable() class TemplateListResponse { @JsonKey(name: 'templates') List? templateList; @JsonKey(name: 'defaultTemplate') TemplateBean? defaultTemplate; @JsonKey(name: 'maxTemplateCount') int maxTemplateCount; TemplateListResponse( this.templateList, this.defaultTemplate, this.maxTemplateCount); factory TemplateListResponse.fromJson(Map json) => _$TemplateListResponseFromJson(json); }