login method

Response login(
  1. String jsonRequest
)

Implementation

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