CommitteeHotAuth.fromJson constructor

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

Implementation

factory CommitteeHotAuth.fromJson(Map<String, dynamic> json) {
  final currentJson = json[CertificateType.committeeHotAuth.name] ?? json;
  return CommitteeHotAuth(
      committeeColdCredential:
          Credential.fromJson(currentJson['committee_cold_credential']),
      committeeHotCredential:
          Credential.fromJson(currentJson['committee_hot_credential']));
}