我正在尝试从这个url- "“获取json数据。我正在遵循这个flutter食谱教程-- "”。
我的模型类看起来像这样-
class ModelData {
ModelData({
this.albumId,
this.id,
this.title,
this.url,
this.thumbnailUrl,
});
final int albumId;
final int id;
final Strin
Dart/Flutter新手。 尝试使用改进后的dart包,但我的测试代码以异常结束: DioError [DioErrorType.DEFAULT]: type 'String' is not a subtype of type 'Map<String, dynamic>' 我的pubspec.yaml (代码片段): dependencies:
json_serializable: ^3.2.2
json_annotation: 3.0.0
retrofit: any
logger: 0.7.0 #for logging p