CertificateDescription.fromJson constructor

CertificateDescription.fromJson(
  1. Map json_
)

Implementation

CertificateDescription.fromJson(core.Map json_)
    : this(
        aiaIssuingCertificateUrls:
            json_.containsKey('aiaIssuingCertificateUrls')
                ? (json_['aiaIssuingCertificateUrls'] as core.List)
                    .map((value) => value as core.String)
                    .toList()
                : null,
        authorityKeyId: json_.containsKey('authorityKeyId')
            ? KeyId.fromJson(json_['authorityKeyId']
                as core.Map<core.String, core.dynamic>)
            : null,
        certFingerprint: json_.containsKey('certFingerprint')
            ? CertificateFingerprint.fromJson(json_['certFingerprint']
                as core.Map<core.String, core.dynamic>)
            : null,
        crlDistributionPoints: json_.containsKey('crlDistributionPoints')
            ? (json_['crlDistributionPoints'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        publicKey: json_.containsKey('publicKey')
            ? PublicKey.fromJson(
                json_['publicKey'] as core.Map<core.String, core.dynamic>)
            : null,
        subjectDescription: json_.containsKey('subjectDescription')
            ? SubjectDescription.fromJson(json_['subjectDescription']
                as core.Map<core.String, core.dynamic>)
            : null,
        subjectKeyId: json_.containsKey('subjectKeyId')
            ? KeyId.fromJson(
                json_['subjectKeyId'] as core.Map<core.String, core.dynamic>)
            : null,
        x509Description: json_.containsKey('x509Description')
            ? X509Parameters.fromJson(json_['x509Description']
                as core.Map<core.String, core.dynamic>)
            : null,
      );