GetVersionHostRequest.fromJson constructor
GetVersionHostRequest.fromJson(
- Object? j
Implementation
factory GetVersionHostRequest.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return GetVersionHostRequest(
association: switch (json['association']) {
null => '',
Object $1 => decodeString($1),
},
host: switch (json['host']) {
null => '',
Object $1 => decodeString($1),
},
hostsGetVersionRequestResource:
switch (json['hostsGetVersionRequestResource']) {
null => null,
Object $1 => HostsGetVersionRequest.fromJson($1),
},
project: switch (json['project']) {
null => '',
Object $1 => decodeString($1),
},
requestId: switch (json['requestId']) {
null => null,
Object $1 => decodeString($1),
},
zone: switch (json['zone']) {
null => '',
Object $1 => decodeString($1),
},
);
}