CertificateRevocationList.fromJson constructor

CertificateRevocationList.fromJson(
  1. Map _json
)

Implementation

CertificateRevocationList.fromJson(core.Map _json)
    : this(
        accessUrl: _json.containsKey('accessUrl')
            ? _json['accessUrl'] as core.String
            : 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,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
        pemCrl: _json.containsKey('pemCrl')
            ? _json['pemCrl'] as core.String
            : null,
        revokedCertificates: _json.containsKey('revokedCertificates')
            ? (_json['revokedCertificates'] as core.List)
                .map<RevokedCertificate>((value) =>
                    RevokedCertificate.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        sequenceNumber: _json.containsKey('sequenceNumber')
            ? _json['sequenceNumber'] as core.String
            : null,
        state:
            _json.containsKey('state') ? _json['state'] as core.String : null,
        updateTime: _json.containsKey('updateTime')
            ? _json['updateTime'] as core.String
            : null,
      );