Runtime.fromJson constructor

Runtime.fromJson(
  1. Map json_
)

Implementation

Runtime.fromJson(core.Map json_)
    : this(
        accessConfig: json_.containsKey('accessConfig')
            ? RuntimeAccessConfig.fromJson(
                json_['accessConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        healthState: json_.containsKey('healthState')
            ? json_['healthState'] as core.String
            : 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,
        metrics: json_.containsKey('metrics')
            ? RuntimeMetrics.fromJson(
                json_['metrics'] as core.Map<core.String, core.dynamic>)
            : null,
        migrated: json_.containsKey('migrated')
            ? json_['migrated'] as core.bool
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        runtimeMigrationEligibility:
            json_.containsKey('runtimeMigrationEligibility')
                ? RuntimeMigrationEligibility.fromJson(
                    json_['runtimeMigrationEligibility']
                        as core.Map<core.String, core.dynamic>)
                : null,
        softwareConfig: json_.containsKey('softwareConfig')
            ? RuntimeSoftwareConfig.fromJson(json_['softwareConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
        virtualMachine: json_.containsKey('virtualMachine')
            ? VirtualMachine.fromJson(json_['virtualMachine']
                as core.Map<core.String, core.dynamic>)
            : null,
      );