PscautomationConfig.fromJson constructor
PscautomationConfig.fromJson(
- Object? j
Implementation
factory PscautomationConfig.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return PscautomationConfig(
projectId: switch (json['projectId']) {
null => '',
Object $1 => decodeString($1),
},
network: switch (json['network']) {
null => '',
Object $1 => decodeString($1),
},
ipAddress: switch (json['ipAddress']) {
null => '',
Object $1 => decodeString($1),
},
forwardingRule: switch (json['forwardingRule']) {
null => '',
Object $1 => decodeString($1),
},
state: switch (json['state']) {
null => PscautomationState.$default,
Object $1 => PscautomationState.fromJson($1),
},
errorMessage: switch (json['errorMessage']) {
null => '',
Object $1 => decodeString($1),
},
);
}