get method
Get Account
Get currently logged in user data as JSON object.
Implementation
Future<models.Account> get() async {
const String path = '/account';
final Map<String, dynamic> params = {};
final Map<String, String> headers = {
'content-type': 'application/json',
};
final res = await client.call(HttpMethod.get,
path: path, params: params, headers: headers);
return models.Account.fromMap(res.data);
}