SoleTenancyPreferences.fromJson constructor
SoleTenancyPreferences.fromJson(
- Map json_
Implementation
SoleTenancyPreferences.fromJson(core.Map json_)
: this(
commitmentPlan: json_.containsKey('commitmentPlan')
? json_['commitmentPlan'] as core.String
: null,
cpuOvercommitRatio: json_.containsKey('cpuOvercommitRatio')
? (json_['cpuOvercommitRatio'] as core.num).toDouble()
: null,
hostMaintenancePolicy: json_.containsKey('hostMaintenancePolicy')
? json_['hostMaintenancePolicy'] as core.String
: null,
nodeTypes: json_.containsKey('nodeTypes')
? (json_['nodeTypes'] as core.List)
.map((value) => SoleTenantNodeType.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);