func (r *Status) UnmarshalJSON(data []byte) error {
	var status string
	err := json.Unmarshal(data, &status)
	if err != nil {
		return err
	}
	// Note that if the string cannot be found then it will be set to the zero value, 'Created' in this case.
	value, ok := reportStatusPendingToID()[status]
	if !ok {
		return fmt.Errorf("%q is an invalid enum for Status", status)
	}
	*r = value
	return nil
}
// UnmarshalJSON - unmashals a quoted json string to the enum value
unmashals a quoted json string to the enum value
// UnmarshalJSON - unmashals a quoted json string to the enum value
func (r *Status) UnmarshalJSON(data []byte) error {
	var status string
	err := json.Unmarshal(data, &status)
	if err != nil {
		return err
	}
	value, ok := reportStatusPendingToID()[status]
	if !ok {
		return fmt.Errorf("%q is an invalid enum for Status", status)
	}
	*r = value
	return nil
}
func ( r * Status ) UnmarshalJSON ( data [ ] byte ) error { var status string err := json . Unmarshal ( data , & status ) if err != nil { return err } value , ok := reportStatusPendingToID ( ) [ status ] if ! ok { return fmt . Errorf ( " " , status ) } * r = value return nil }
unmashals a quoted json string to the enum value
unmashals a quoted json string to the enum value
// Note that if the string cannot be found then it will be set to the zero value, 'Created' in this case.