import 'package:json_annotation/json_annotation.dart';

part 'talk_original.g.dart';

@JsonSerializable()
class TalkOriginal {
  @JsonKey(name: 'endMs')
  int? endMs;

  @JsonKey(name: 'startMs')
  int? startMs;

  @JsonKey(name: 'duration')
  double? duration;

  @JsonKey(name: 'speakerId')
  int? speakerId;

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

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

  TalkOriginal({
    this.endMs,
    this.startMs,
    this.duration,
    this.speakerId,
    this.speaker,
    this.sentence,
  });

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