DatacenterConnector.fromJson constructor

DatacenterConnector.fromJson(
  1. Map json_
)

Implementation

DatacenterConnector.fromJson(core.Map json_)
    : this(
        applianceInfrastructureVersion:
            json_.containsKey('applianceInfrastructureVersion')
                ? json_['applianceInfrastructureVersion'] as core.String
                : null,
        applianceSoftwareVersion:
            json_.containsKey('applianceSoftwareVersion')
                ? json_['applianceSoftwareVersion'] as core.String
                : null,
        availableVersions: json_.containsKey('availableVersions')
            ? AvailableUpdates.fromJson(json_['availableVersions']
                as core.Map<core.String, core.dynamic>)
            : null,
        bucket: json_.containsKey('bucket')
            ? json_['bucket'] as core.String
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        error: json_.containsKey('error')
            ? Status.fromJson(
                json_['error'] as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        registrationId: json_.containsKey('registrationId')
            ? json_['registrationId'] as core.String
            : null,
        serviceAccount: json_.containsKey('serviceAccount')
            ? json_['serviceAccount'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        stateTime: json_.containsKey('stateTime')
            ? json_['stateTime'] as core.String
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
        upgradeStatus: json_.containsKey('upgradeStatus')
            ? UpgradeStatus.fromJson(
                json_['upgradeStatus'] as core.Map<core.String, core.dynamic>)
            : null,
        version: json_.containsKey('version')
            ? json_['version'] as core.String
            : null,
      );