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,
        databaseType: json_.containsKey('databaseType')
            ? json_['databaseType'] as core.String
            : null,
        deletionProtection: json_.containsKey('deletionProtection')
            ? json_['deletionProtection'] as core.bool
            : 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, value) => core.MapEntry(
                  key,
                  value 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,
        networkConfig: json_.containsKey('networkConfig')
            ? NetworkConfig.fromJson(
                json_['networkConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        port: json_.containsKey('port') ? json_['port'] as core.int : null,
        releaseChannel: json_.containsKey('releaseChannel')
            ? json_['releaseChannel'] as core.String
            : null,
        scalingConfig: json_.containsKey('scalingConfig')
            ? ScalingConfig.fromJson(
                json_['scalingConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        scheduledBackup: json_.containsKey('scheduledBackup')
            ? ScheduledBackup.fromJson(json_['scheduledBackup']
                as core.Map<core.String, core.dynamic>)
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        stateMessage: json_.containsKey('stateMessage')
            ? json_['stateMessage'] as core.String
            : null,
        telemetryConfig: json_.containsKey('telemetryConfig')
            ? TelemetryConfig.fromJson(json_['telemetryConfig']
                as core.Map<core.String, core.dynamic>)
            : 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,
      );