DeployRequest_DeployConfig.fromJson constructor
DeployRequest_DeployConfig.fromJson(
- Object? j
Implementation
factory DeployRequest_DeployConfig.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return DeployRequest_DeployConfig(
dedicatedResources: switch (json['dedicatedResources']) {
null => null,
Object $1 => DedicatedResources.fromJson($1),
},
fastTryoutEnabled: switch (json['fastTryoutEnabled']) {
null => false,
Object $1 => decodeBool($1),
},
systemLabels: switch (json['systemLabels']) {
null => {},
Map<String, Object?> $1 => {
for (final e in $1.entries)
decodeString(e.key): decodeString(e.value),
},
_ => throw const FormatException('"systemLabels" is not an object'),
},
);
}