getMetadata method
Returns Future of UserMetadata, Retrieves information for the authenticated user.
Implementation
Future<UserMetadata> getMetadata() async {
return sendToProvider(method: UserMethod.magic_auth_get_metadata)
.then((jsMsg) {
var relayerResponse = RelayerResponse<UserMetadata>.fromJson(
json.decode(jsMsg.message),
(json) => UserMetadata.fromJson(json as Map<String, dynamic>));
return relayerResponse.response.result;
});
}