ListPermissionsResponse.fromJson constructor

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

Implementation

factory ListPermissionsResponse.fromJson(Map<String, dynamic> json) {
  return ListPermissionsResponse(
    nextToken: json['NextToken'] as String?,
    permissions: (json['Permissions'] as List?)
        ?.whereNotNull()
        .map((e) => Permission.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}