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<TemplateBean>? templateList;

  @JsonKey(name: 'defaultTemplate')
  TemplateBean? defaultTemplate;

  @JsonKey(name: 'maxTemplateCount')
  int maxTemplateCount;

  TemplateListResponse(
      this.templateList, this.defaultTemplate, this.maxTemplateCount);

  factory TemplateListResponse.fromJson(Map<String, dynamic> json) =>
      _$TemplateListResponseFromJson(json);
}
