login method
Implementation
http.Response login(String jsonRequest) {
User? user = _userService?.login(User.fromJson(jsonDecode(jsonRequest)));
return http.Response(jsonEncode(user), HttpStatus.ok);
}
http.Response login(String jsonRequest) {
User? user = _userService?.login(User.fromJson(jsonDecode(jsonRequest)));
return http.Response(jsonEncode(user), HttpStatus.ok);
}