GrpctlshealthCheck.fromJson constructor
GrpctlshealthCheck.fromJson(
- Object? j
Implementation
factory GrpctlshealthCheck.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return GrpctlshealthCheck(
grpcServiceName: switch (json['grpcServiceName']) {
null => null,
Object $1 => decodeString($1),
},
port: switch (json['port']) {
null => null,
Object $1 => decodeInt($1),
},
portSpecification: switch (json['portSpecification']) {
null => null,
Object $1 => decodeString($1),
},
);
}