Ver Fonte

1、更新jsonrpc

guanxinyi há 4 meses atrás
pai
commit
cee8a540cf
1 ficheiros alterados com 5 adições e 1 exclusões
  1. 5 1
      lib/services/aIDiagnosis.m.dart

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

@@ -2419,8 +2419,12 @@ class VetAutoTraceImageResult {
 	});
 
 	factory VetAutoTraceImageResult.fromJson(Map<String, dynamic> map) {
+		final pWTraceInfosMap= <String,PWTraceDTO>{};
+		for (var key in map['PWTraceInfos'].keys) {
+			pWTraceInfosMap[key] = PWTraceDTO.fromJson(map['PWTraceInfos'][key]);
+		}
 		return VetAutoTraceImageResult( 
-			pWTraceInfos: map['PWTraceInfos']?.cast<String,PWTraceDTO>(),
+			 pWTraceInfos : pWTraceInfosMap
 		);
 	}