addRetailer method

  1. @override
Future<SpinachUser> addRetailer(
  1. Map<String, dynamic> body
)
override

Implementation

@override
Future<SpinachUser> addRetailer(Map<String, dynamic> body) async {
  var res = await _postWithKey("/retailers", body);
  return SpinachUser.fromJson(jsonDecode(res.body));
}