formatFetchAttributesResponse method

List<AuthUserAttribute> formatFetchAttributesResponse(
  1. List<Map> attributeResponse
)

Implementation

List<AuthUserAttribute> formatFetchAttributesResponse(
    List<Map<dynamic, dynamic>> attributeResponse) {
  List<AuthUserAttribute> attributes = [];
  attributeResponse.forEach((element) {
    attributes.add(AuthUserAttribute(
      userAttributeKey: CognitoUserAttributeKey.parse(element["key"]),
      value: element["value"],
    ));
  });
  return attributes;
}