import 'package:json_annotation/json_annotation.dart';

part 'talk_detail_response.g.dart';

@JsonSerializable()
class TalkDetailResponse {
  @JsonKey(name: 'id')
  String? id;

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

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

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

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

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

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

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

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

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

  TalkDetailResponse(
      {this.id,
      this.taskId,
      this.ssid,
      this.audioUrl,
      this.duration,
      this.status,
      this.title,
      this.summary,
      this.createTime,
      this.example});

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