CrossSigningKey.fromJson constructor

CrossSigningKey.fromJson(
  1. Map<String, dynamic> json,
  2. Client client
)

Implementation

CrossSigningKey.fromJson(Map<String, dynamic> json, Client client)
    : super.fromJson(json.copy(), client) {
  final json = toJson();
  usage = json['usage'].cast<String>();
  if (keys.isNotEmpty) {
    identifier = keys.values.first;
  }
}