ListUsersResponse.fromJson constructor

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

Implementation

factory ListUsersResponse.fromJson(Map<String, dynamic> json) {
  return ListUsersResponse(
    nextToken: json['NextToken'] as String?,
    userSummaryList: (json['UserSummaryList'] as List?)
        ?.whereNotNull()
        .map((e) => UserSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}