EndpointUser.fromJson constructor

EndpointUser.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory EndpointUser.fromJson(Map<String, dynamic> json) {
  return EndpointUser(
    userAttributes: (json['UserAttributes'] as Map<String, dynamic>?)?.map(
        (k, e) => MapEntry(
            k, (e as List).whereNotNull().map((e) => e as String).toList())),
    userId: json['UserId'] as String?,
  );
}