JsonWebKeySet.fromKeys constructor

JsonWebKeySet.fromKeys(
  1. Iterable<JsonWebKey?> keys
)

Constructs a JsonWebKeySet from the list of keys

Implementation

factory JsonWebKeySet.fromKeys(Iterable<JsonWebKey?> keys) =>
    JsonWebKeySet.fromJson({
      'keys': keys.map((v) => v?.toJson()).whereNotNull().toList(),
    });