IdentityDescriptor.fromJson constructor

IdentityDescriptor.fromJson(
  1. Map<String, dynamic> json
)

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;
}