func (healthStatus *ContainerHealthStatus) UnmarshalJSON(b []byte) error {
	*healthStatus = ContainerHealthUnknown

	if strings.ToLower(string(b)) == "null" {
		return nil
	}
	if b[0] != '"' || b[len(b)-1] != '"' {
		return errors.New("container health status unmarshal: status must be a string or null; Got " + string(b))
	}

	strStatus := string(b[1 : len(b)-1])
	switch strStatus {
	case "UNKNOWN":
	// The health status is already set to ContainerHealthUnknown initially
	case "HEALTHY":
		*healthStatus = ContainerHealthy
	case "UNHEALTHY":
		*healthStatus = ContainerUnhealthy
	default:
		return errors.New("container health status unmarshal: unrecognized status: " + string(b))
	}
	return nil
}
func (healthStatus *ContainerHealthStatus) UnmarshalJSON(b []byte) error {
	*healthStatus = ContainerHealthUnknown

	if strings.ToLower(string(b)) == "null" {
		return nil
	}
	if b[0] != '"' || b[len(b)-1] != '"' {
		return errors.New("container health status unmarshal: status must be a string or null; Got " + string(b))
	}

	strStatus := string(b[1 : len(b)-1])
	switch strStatus {
	case "UNKNOWN":
	
	case "HEALTHY":
		*healthStatus = ContainerHealthy
	case "UNHEALTHY":
		*healthStatus = ContainerUnhealthy
	default:
		return errors.New("container health status unmarshal: unrecognized status: " + string(b))
	}
	return nil
}
func ( healthStatus * ContainerHealthStatus ) UnmarshalJSON ( b [ ] byte ) error { * healthStatus = ContainerHealthUnknown if strings . ToLower ( string ( b ) ) == " " { return nil } if b [ 0 ] != '"' || b [ len ( b ) - 1 ] != '"' { return errors . New ( " " + string ( b ) ) } strStatus := string ( b [ 1 : len ( b ) - 1 ] ) switch strStatus { case " " : // The health status is already set to ContainerHealthUnknown initially case " " : * healthStatus = ContainerHealthy case " " : * healthStatus = ContainerUnhealthy default : return errors . New ( " " + string ( b ) ) } return nil }
// UnmarshalJSON overrides the logic for parsing the JSON-encoded container health data
UnmarshalJSON overrides the logic for parsing the JSON - encoded container health data