Probe.fromJson constructor
Probe.fromJson(
- Object? j
Implementation
factory Probe.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return Probe(
exec: switch (json['exec']) {
null => null,
Object $1 => Probe_ExecAction.fromJson($1),
},
httpGet: switch (json['httpGet']) {
null => null,
Object $1 => Probe_HttpGetAction.fromJson($1),
},
grpc: switch (json['grpc']) {
null => null,
Object $1 => Probe_GrpcAction.fromJson($1),
},
tcpSocket: switch (json['tcpSocket']) {
null => null,
Object $1 => Probe_TcpSocketAction.fromJson($1),
},
periodSeconds: switch (json['periodSeconds']) {
null => 0,
Object $1 => decodeInt($1),
},
timeoutSeconds: switch (json['timeoutSeconds']) {
null => 0,
Object $1 => decodeInt($1),
},
failureThreshold: switch (json['failureThreshold']) {
null => 0,
Object $1 => decodeInt($1),
},
successThreshold: switch (json['successThreshold']) {
null => 0,
Object $1 => decodeInt($1),
},
initialDelaySeconds: switch (json['initialDelaySeconds']) {
null => 0,
Object $1 => decodeInt($1),
},
);
}