singsound_result_detail_entity.dart
1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import 'package:wow_english/generated/json/base/json_field.dart';
import 'package:wow_english/generated/json/singsound_result_detail_entity.g.dart';
import 'dart:convert';
export 'package:wow_english/generated/json/singsound_result_detail_entity.g.dart';
@JsonSerializable()
class SingsoundResultDetailEntity {
@JSONField(name: "dp_type")
late int? dpType;
late int? tonescore;
late int? dur;
late int? liaisonref;
late int? stressref;
late int? senseref;
late int? start;
late int? liaisonscore;
late int? fluency;
late String char;
late int? toneref;
late int? stressscore;
late int score;
late int? end;
late int? sensescore;
SingsoundResultDetailEntity();
// 只接受两个参数的构造函数
SingsoundResultDetailEntity.withCharAndScore(this.char, this.score) {
dpType = null;
tonescore = null;
dur = null;
liaisonref = null;
stressref = null;
senseref = null;
start = null;
liaisonscore = null;
fluency = null;
toneref = null;
stressscore = null;
end = null;
sensescore = null;
}
factory SingsoundResultDetailEntity.fromJson(Map<String, dynamic> json) => $SingsoundResultDetailEntityFromJson(json);
Map<String, dynamic> toJson() => $SingsoundResultDetailEntityToJson(this);
@override
String toString() {
return jsonEncode(this);
}
}