guanxinyi 4 mesiacov pred
rodič
commit
9671c5a5dc
1 zmenil súbory, kde vykonal 2 pridanie a 5 odobranie
  1. 2 5
      lib/services/aIDiagnosis.m.dart

+ 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