InstancePolicyOrTemplate.fromJson constructor

InstancePolicyOrTemplate.fromJson(
  1. Map json_
)

Implementation

InstancePolicyOrTemplate.fromJson(core.Map json_)
    : this(
        installGpuDrivers: json_.containsKey('installGpuDrivers')
            ? json_['installGpuDrivers'] as core.bool
            : null,
        instanceTemplate: json_.containsKey('instanceTemplate')
            ? json_['instanceTemplate'] as core.String
            : null,
        policy: json_.containsKey('policy')
            ? InstancePolicy.fromJson(
                json_['policy'] as core.Map<core.String, core.dynamic>)
            : null,
      );