guanxinyi 4 сар өмнө
parent
commit
9671c5a5dc

+ 2 - 5
lib/services/aIDiagnosis.m.dart

@@ -3,8 +3,6 @@ import 'liveConsultation.m.dart';
 
 import 'package:fis_jsonrpc/utils.dart';
 
-import 'dart:convert';
-
 class AIDiagnosisRect {
 	int right;
 	int bottom;
@@ -2422,9 +2420,8 @@ class VetAutoTraceImageResult {
 
 	factory VetAutoTraceImageResult.fromJson(Map<String, dynamic> map) {
 		final pWTraceInfosMap= <String,PWTraceDTO>{};
-		final Map<String, dynamic> jsonpWTraceInfosMap = jsonDecode(map['PWTraceInfos']);
-		for (var key in jsonpWTraceInfosMap.keys) {
-			pWTraceInfosMap[key] = PWTraceDTO.fromJson(jsonpWTraceInfosMap[key]);
+		for (var key in map['PWTraceInfos'].keys) {
+			pWTraceInfosMap[key] = PWTraceDTO.fromJson(map['PWTraceInfos'][key]);
 		}
 		return VetAutoTraceImageResult( 
 			 pWTraceInfos : pWTraceInfosMap