IdentityDescriptor.fromJson constructor
Implementation
factory IdentityDescriptor.fromJson(Map<String, dynamic> json) {
var descriptor =
IdentityDescriptor(type: json["type"] ?? "AnonymousIdentity");
if (json["publicKey"] != null) {
descriptor.publicKey = json["publicKey"];
}
return descriptor;
}