Certificate.fromJson constructor

Certificate.fromJson(
  1. Map json_
)

Implementation

Certificate.fromJson(core.Map json_)
    : this(
        certificateDescription: json_.containsKey('certificateDescription')
            ? CertificateDescription.fromJson(json_['certificateDescription']
                as core.Map<core.String, core.dynamic>)
            : null,
        certificateTemplate: json_.containsKey('certificateTemplate')
            ? json_['certificateTemplate'] as core.String
            : null,
        config: json_.containsKey('config')
            ? CertificateConfig.fromJson(
                json_['config'] as core.Map<core.String, core.dynamic>)
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        issuerCertificateAuthority:
            json_.containsKey('issuerCertificateAuthority')
                ? json_['issuerCertificateAuthority'] as core.String
                : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        lifetime: json_.containsKey('lifetime')
            ? json_['lifetime'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        pemCertificate: json_.containsKey('pemCertificate')
            ? json_['pemCertificate'] as core.String
            : null,
        pemCertificateChain: json_.containsKey('pemCertificateChain')
            ? (json_['pemCertificateChain'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        pemCsr: json_.containsKey('pemCsr')
            ? json_['pemCsr'] as core.String
            : null,
        revocationDetails: json_.containsKey('revocationDetails')
            ? RevocationDetails.fromJson(json_['revocationDetails']
                as core.Map<core.String, core.dynamic>)
            : null,
        subjectMode: json_.containsKey('subjectMode')
            ? json_['subjectMode'] as core.String
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );