getConsumerById method

  1. @override
Future<SpinachUser> getConsumerById(
  1. String id
)
override

Implementation

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