fetchUserAttributes method
Implementation
@override
Future<List<AuthUserAttribute>> fetchUserAttributes(
{FetchUserAttributesRequest? request}) async {
try {
final List<Map<dynamic, dynamic>>? data =
(await (_channel.invokeListMethod(
'fetchUserAttributes',
<String, dynamic>{
'data': request != null ? request.serializeAsMap() : {},
},
)));
if (data == null)
throw AmplifyException(
AmplifyExceptionMessages.nullReturnedFromMethodChannel);
return formatFetchAttributesResponse(data);
} on PlatformException catch (e) {
throw castAndReturnPlatformException(e);
}
}