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,
        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,
        labels: _json.containsKey('labels')
            ? (_json['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, item) => core.MapEntry(
                  key,
                  item 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<core.String>((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,
        updateTime: _json.containsKey('updateTime')
            ? _json['updateTime'] as core.String
            : null,
      );