PermissionGrants.fromJson constructor

PermissionGrants.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory PermissionGrants.fromJson(Map<String, Object?> json) {
  return PermissionGrants(
    expand: json[r'expand'] as String?,
    permissions: (json[r'permissions'] as List<Object?>?)
            ?.map((i) => PermissionGrant.fromJson(
                i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
  );
}