aSR.m.dart 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. import 'liveConsultation.m.dart';
  2. class ASRResultDTO {
  3. bool isComplete;
  4. String? content;
  5. ASRResultDTO({
  6. this.isComplete = false,
  7. this.content,
  8. });
  9. factory ASRResultDTO.fromJson(Map<String, dynamic> map) {
  10. return ASRResultDTO(
  11. isComplete: map['IsComplete'],
  12. content: map['Content'],
  13. );
  14. }
  15. Map<String, dynamic> toJson() {
  16. final map = Map<String, dynamic>();
  17. map['IsComplete'] = isComplete;
  18. if (content != null) {
  19. map['Content'] = content;
  20. }
  21. return map;
  22. }
  23. }
  24. class CommitASRInfoRequest extends TokenRequest{
  25. String? url;
  26. String? fileType;
  27. CommitASRInfoRequest({
  28. this.url,
  29. this.fileType,
  30. String? token,
  31. }) : super(
  32. token: token,
  33. );
  34. factory CommitASRInfoRequest.fromJson(Map<String, dynamic> map) {
  35. return CommitASRInfoRequest(
  36. url: map['Url'],
  37. fileType: map['FileType'],
  38. token: map['Token'],
  39. );
  40. }
  41. Map<String, dynamic> toJson() {
  42. final map = super.toJson();
  43. if (url != null)
  44. map['Url'] = url;
  45. if (fileType != null)
  46. map['FileType'] = fileType;
  47. return map;
  48. }
  49. }