getConsumerById method
Implementation
@override
Future<SpinachUser> getConsumerById(String id) async {
var res = await _getByIdWithToken("/consumers/" + id);
return SpinachUser.fromJson(jsonDecode(res.body));
}
@override
Future<SpinachUser> getConsumerById(String id) async {
var res = await _getByIdWithToken("/consumers/" + id);
return SpinachUser.fromJson(jsonDecode(res.body));
}