jjzjj

FlightSegmentReference

全部标签

flutter - 如何解决 List<dynamic> is not a subtype of type 'Map<String, dynamic>?

错误说它无法创建ApplicableFlightFlightSegmentReference有问题Listdynamicisnotasubtypeoftype'MapString,dynamic这是使用json.decode和fromJson的地方varmap=json.decode(response.body)asMap;ResponseGateresponseGate=newResponseGate.fromJson(map);这是json.decode的输出片段..,ApplicableFlight:{FlightReferences:F1,FlightSegmentRefere

flutter - 如何解决 List<dynamic> is not a subtype of type 'Map<String, dynamic>?

错误说它无法创建ApplicableFlightFlightSegmentReference有问题Listdynamicisnotasubtypeoftype'MapString,dynamic这是使用json.decode和fromJson的地方varmap=json.decode(response.body)asMap;ResponseGateresponseGate=newResponseGate.fromJson(map);这是json.decode的输出片段..,ApplicableFlight:{FlightReferences:F1,FlightSegmentRefere