CrossSigningKey.fromDbJson constructor

CrossSigningKey.fromDbJson(
  1. Map<String, dynamic> dbEntry,
  2. Client client
)

Implementation

CrossSigningKey.fromDbJson(Map<String, dynamic> dbEntry, Client client)
    : super.fromJson(Event.getMapFromPayload(dbEntry['content']), client) {
  final json = toJson();
  identifier = dbEntry['public_key'];
  usage = json['usage'].cast<String>();
  _verified = dbEntry['verified'];
  _blocked = dbEntry['blocked'];
}