CrossSigningKey.fromSDNCrossSigningKey constructor

CrossSigningKey.fromSDNCrossSigningKey(
  1. SDNCrossSigningKey key,
  2. Client client
)

Implementation

CrossSigningKey.fromSDNCrossSigningKey(SDNCrossSigningKey key, Client client)
    : super.fromJson(key.toJson().copy(), client) {
  final json = toJson();
  identifier = key.publicKey;
  usage = json['usage'].cast<String>();
}