import 'package:electronic_assistant/base/app_base_request.dart';
import 'package:json_annotation/json_annotation.dart';

part 'template_update_request.g.dart';

@JsonSerializable()
class TemplateUpdateRequest extends AppBaseRequest {
  @JsonKey(name: 'id')
  int? id;

  @JsonKey(name: 'name')
  String name;

  @JsonKey(name: 'titles')
  List<String>? titles;

  TemplateUpdateRequest(this.id, this.name, this.titles);

  @override
  Map<String, dynamic> toJson() => _$TemplateUpdateRequestToJson(this);
}
