SslCertificate.fromJson constructor

SslCertificate.fromJson(
  1. Map json_
)

Implementation

SslCertificate.fromJson(core.Map json_)
    : this(
        certificate: json_.containsKey('certificate')
            ? json_['certificate'] as core.String
            : null,
        creationTimestamp: json_.containsKey('creationTimestamp')
            ? json_['creationTimestamp'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        expireTime: json_.containsKey('expireTime')
            ? json_['expireTime'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        managed: json_.containsKey('managed')
            ? SslCertificateManagedSslCertificate.fromJson(
                json_['managed'] as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        privateKey: json_.containsKey('privateKey')
            ? json_['privateKey'] as core.String
            : null,
        region: json_.containsKey('region')
            ? json_['region'] as core.String
            : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
        selfManaged: json_.containsKey('selfManaged')
            ? SslCertificateSelfManagedSslCertificate.fromJson(
                json_['selfManaged'] as core.Map<core.String, core.dynamic>)
            : null,
        subjectAlternativeNames: json_.containsKey('subjectAlternativeNames')
            ? (json_['subjectAlternativeNames'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );