DRepRegistration.fromJson constructor
Implementation
factory DRepRegistration.fromJson(Map<String, dynamic> json) {
  final currentJson = json[CertificateType.dRepRegistration.name] ?? json;
  final anchor = currentJson['anchor'];
  return DRepRegistration(
      votingCredential: Credential.fromJson(currentJson['voting_credential']),
      coin: BigintUtils.parse(currentJson["coin"]),
      anchor: anchor == null ? null : Anchor.fromJson(anchor));
}