@ -17,7 +17,7 @@ class UserApiClient {
/ / / - If the request completed successfully the [ UserApiClient . user ] object inside [ UserApiClient ] class won ' t be null and will contains the data comes from the response.
/ / / - Returns exception of type [ APIException ] if any error happened .
/ / /
/ / / # # # # lib \ client \ login _api_client. dart
/ / / # # # # lib \ client \ user _api_client. dart
Future login ( { required User user } ) async {
return await ApiClient ( ) . postJsonForObject (
( json ) {
@ -33,7 +33,7 @@ class UserApiClient {
/ / / - If the request completed successfully the [ user ] object inside [ UserApiClient ] class won ' t be null and will contains the data comes from the response.
/ / / - Returns exception of type [ APIException ] if any error happened .
/ / /
/ / / # # # # lib \ client \ login _api_client. dart
/ / / # # # # lib \ client \ user _api_client. dart
Future register ( { required User newUser } ) async {
return await ApiClient ( ) . postJsonForObject (
( json ) {
@ -48,7 +48,7 @@ class UserApiClient {
/ / / - If the request completed successfully the [ user ] object inside [ UserApiClient ] class won ' t be null and will contains the data comes from the response.
/ / / - Returns exception of type [ APIException ] if any error happened .
/ / /
/ / / # # # # lib \ client \ login _api_client. dart
/ / / # # # # lib \ client \ user _api_client. dart
Future updateProfile ( { required User updatedUser } ) async {
return await ApiClient ( ) . postJsonForObject (
( json ) {