SchedulingConfig.fromJson constructor

SchedulingConfig.fromJson(
  1. Map json_
)

Implementation

SchedulingConfig.fromJson(core.Map json_)
    : this(
        preemptible: json_.containsKey('preemptible')
            ? json_['preemptible'] as core.bool
            : null,
        reserved: json_.containsKey('reserved')
            ? json_['reserved'] as core.bool
            : null,
        spot: json_.containsKey('spot') ? json_['spot'] as core.bool : null,
      );