ListUsersResponse.fromJson constructor

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

Implementation

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