Service.fromJson constructor

Service.fromJson(
  1. Map _json
)

Implementation

Service.fromJson(core.Map _json)
    : this(
        artifactGcsUri: _json.containsKey('artifactGcsUri')
            ? _json['artifactGcsUri'] as core.String
            : null,
        createTime: _json.containsKey('createTime')
            ? _json['createTime'] as core.String
            : null,
        encryptionConfig: _json.containsKey('encryptionConfig')
            ? EncryptionConfig.fromJson(_json['encryptionConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        endpointUri: _json.containsKey('endpointUri')
            ? _json['endpointUri'] as core.String
            : null,
        hiveMetastoreConfig: _json.containsKey('hiveMetastoreConfig')
            ? HiveMetastoreConfig.fromJson(_json['hiveMetastoreConfig']
                as core.Map<core.String, core.dynamic>)
            : 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,
        maintenanceWindow: _json.containsKey('maintenanceWindow')
            ? MaintenanceWindow.fromJson(_json['maintenanceWindow']
                as core.Map<core.String, core.dynamic>)
            : null,
        metadataIntegration: _json.containsKey('metadataIntegration')
            ? MetadataIntegration.fromJson(_json['metadataIntegration']
                as core.Map<core.String, core.dynamic>)
            : null,
        metadataManagementActivity:
            _json.containsKey('metadataManagementActivity')
                ? MetadataManagementActivity.fromJson(
                    _json['metadataManagementActivity']
                        as core.Map<core.String, core.dynamic>)
                : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
        network: _json.containsKey('network')
            ? _json['network'] as core.String
            : null,
        port: _json.containsKey('port') ? _json['port'] as core.int : null,
        releaseChannel: _json.containsKey('releaseChannel')
            ? _json['releaseChannel'] as core.String
            : null,
        state:
            _json.containsKey('state') ? _json['state'] as core.String : null,
        stateMessage: _json.containsKey('stateMessage')
            ? _json['stateMessage'] as core.String
            : null,
        tier: _json.containsKey('tier') ? _json['tier'] as core.String : null,
        uid: _json.containsKey('uid') ? _json['uid'] as core.String : null,
        updateTime: _json.containsKey('updateTime')
            ? _json['updateTime'] as core.String
            : null,
      );