talks.dart 955 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. import 'package:json_annotation/json_annotation.dart';
  2. part 'talks.g.dart';
  3. @JsonSerializable()
  4. class TalkBean {
  5. @JsonKey(name: 'id')
  6. String? id;
  7. @JsonKey(name: 'taskId')
  8. String? taskId;
  9. @JsonKey(name: 'ssid')
  10. String? ssid;
  11. @JsonKey(name: 'audioUrl')
  12. String? audioUrl;
  13. @JsonKey(name: 'duration')
  14. double? duration;
  15. @JsonKey(name: 'characters')
  16. int? characters;
  17. @JsonKey(name: 'status')
  18. int? status;
  19. @JsonKey(name: 'title')
  20. String? title;
  21. @JsonKey(name: 'summary')
  22. String? summary;
  23. @JsonKey(name: 'createTime')
  24. String? createTime;
  25. @JsonKey(name: 'example')
  26. bool? isExample;
  27. TalkBean(
  28. {this.id,
  29. this.taskId,
  30. this.ssid,
  31. this.audioUrl,
  32. this.duration,
  33. this.characters,
  34. this.status,
  35. this.title,
  36. this.summary,
  37. this.createTime,
  38. this.isExample});
  39. factory TalkBean.fromJson(Map<String, dynamic> json) =>
  40. _$TalkBeanFromJson(json);
  41. }