login method
Implementation
Future<Either<BaseException, AuthProfileModel>> login(String userName, String password) {
return post(
AuthUrls.login,
body: {
'userName': userName,
'password': password,
},
mapper: (json) => AuthProfileModel.fromMap(json),
);
}