소스 검색

1、更新jsonrpc

guanxinyi 4 달 전
부모
커밋
9671c5a5dc
1개의 변경된 파일2개의 추가작업 그리고 5개의 파일을 삭제
  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