getAccountByLogin method
Gets an account by its login.
correlationId
(optional) transaction id to trace execution through call chain.login
a login of account to be retrieved. Return Future that receives account or error.
Implementation
@override
Future<AccountV1?> getAccountByLogin(
String? correlationId, String login) async {
var result = await callCommand(
'get_account_by_login', correlationId, {'login': login});
if (result == null) return null;
var item = AccountV1();
item.fromJson(json.decode(result));
return item;
}