PatchRegionHealthAggregationPolicyRequest.fromJson constructor
PatchRegionHealthAggregationPolicyRequest.fromJson(
- Object? j
Implementation
factory PatchRegionHealthAggregationPolicyRequest.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return PatchRegionHealthAggregationPolicyRequest(
healthAggregationPolicy: switch (json['healthAggregationPolicy']) {
null => '',
Object $1 => decodeString($1),
},
healthAggregationPolicyResource:
switch (json['healthAggregationPolicyResource']) {
null => null,
Object $1 => HealthAggregationPolicy.fromJson($1),
},
project: switch (json['project']) {
null => '',
Object $1 => decodeString($1),
},
region: switch (json['region']) {
null => '',
Object $1 => decodeString($1),
},
requestId: switch (json['requestId']) {
null => null,
Object $1 => decodeString($1),
},
);
}