import 'package:json_annotation/json_annotation.dart'; import 'package:demo001/xunfei/phonetic_dictation/phonetic_dictaion_model/w.dart'; part 'recognition_content.g.dart'; @JsonSerializable() class RecognitionContent { int? bg; int? ed; bool? ls; String? pgs; List? rg; int? sn; @JsonKey(name: 'sub_end') bool? subEnd; List? ws; RecognitionContent({ this.bg, this.ed, this.ls, this.pgs, this.rg, this.sn, this.subEnd, this.ws, }); factory RecognitionContent.fromJson(Map json) { return _$RecognitionContentFromJson(json); } Map toJson() => _$RecognitionContentToJson(this); }