CertificateAuthorityConfiguration.fromJson constructor

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

Implementation

factory CertificateAuthorityConfiguration.fromJson(
    Map<String, dynamic> json) {
  return CertificateAuthorityConfiguration(
    keyAlgorithm: (json['KeyAlgorithm'] as String).toKeyAlgorithm(),
    signingAlgorithm:
        (json['SigningAlgorithm'] as String).toSigningAlgorithm(),
    subject: ASN1Subject.fromJson(json['Subject'] as Map<String, dynamic>),
    csrExtensions: json['CsrExtensions'] != null
        ? CsrExtensions.fromJson(
            json['CsrExtensions'] as Map<String, dynamic>)
        : null,
  );
}