import 'package:json_annotation/json_annotation.dart';

part 'agenda.g.dart';

@JsonSerializable()
class Agenda {
  @JsonKey(name: 'id')
  int? id;

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

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

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

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

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

  @JsonKey(name: 'todo')
  bool? todo;

  @JsonKey(name: 'example')
  bool? isExample;

  bool? isDone;

  Agenda(
      {this.id,
      this.talkId,
      this.name,
      this.content,
      this.createTime,
      this.updateTime,
      this.todo,
      this.isExample});

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