body<T extends DataModel> method
Convert response body to a DataModel
Implementation
T body<T extends DataModel>(Type type) {
T model = DataModel.create<T>(type);
model.fromJSON(data);
return model;
}
Convert response body to a DataModel
T body<T extends DataModel>(Type type) {
T model = DataModel.create<T>(type);
model.fromJSON(data);
return model;
}