factory KeyPair.fromJson(Map<Object?, Object?> json) => KeyPair( pk: (json['pk'] ?? '') as String, sk: (json['sk'] ?? '') as String, );