浏览代码

1、更新jsonrpc

guanxinyi 4 月之前
父节点
当前提交
cee8a540cf
共有 1 个文件被更改,包括 5 次插入1 次删除
  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
 		);
 	}