RecommendSpecRequest.fromJson constructor
RecommendSpecRequest.fromJson(
- Object? j
Implementation
factory RecommendSpecRequest.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return RecommendSpecRequest(
parent: switch (json['parent']) {
null => '',
Object $1 => decodeString($1),
},
gcsUri: switch (json['gcsUri']) {
null => '',
Object $1 => decodeString($1),
},
checkMachineAvailability: switch (json['checkMachineAvailability']) {
null => false,
Object $1 => decodeBool($1),
},
checkUserQuota: switch (json['checkUserQuota']) {
null => false,
Object $1 => decodeBool($1),
},
);
}