func (r *HVVRequest) MarshalJSON() ([]byte, error) {
	return json.Marshal(struct {
		HVVRequest
		TimeIsDeparture bool `json:"timeIsDeparture"`
		SchedulesBefore int  `json:"schedulesBefore"`
		// Provides you with Realtime data
		// Optional
		RealTime string `json:"realtime"`
	}{
		HVVRequest:      HVVRequest(*r),
		RealTime:        "REALTIME",
		TimeIsDeparture: true,
		SchedulesBefore: 0,
	})
}
// Implements the Json Interface and
// adds additional information to the body when called with json.Marshal(r)
Implements the Json Interface and
adds additional information to the body when called with json.Marshal(r)
// Implements the Json Interface and // adds additional information to the body when called with json . Marshal ( r )
func (r *HVVRequest) MarshalJSON() ([]byte, error) {
	return json.Marshal(struct {
		HVVRequest
		TimeIsDeparture bool `json:"timeIsDeparture"`
		SchedulesBefore int  `json:"schedulesBefore"`
		RealTime string `json:"realtime"`
	}{
		HVVRequest:      HVVRequest(*r),
		RealTime:        "REALTIME",
		TimeIsDeparture: true,
		SchedulesBefore: 0,
	})
}
func ( r * HVVRequest ) MarshalJSON ( ) ( [ ] byte , error ) { return json . Marshal ( struct { HVVRequest TimeIsDeparture bool `json:"timeIsDeparture"` SchedulesBefore int `json:"schedulesBefore"` RealTime string `json:"realtime"` } { HVVRequest : HVVRequest ( * r ) , RealTime : " " , TimeIsDeparture : true , SchedulesBefore : 0 , } ) }
Implements the Json Interface and
adds additional information to the body when called with json.Marshal(r)
Implements the Json Interface and adds additional information to the body when called with json . Marshal ( r )
// Provides you with Realtime data // Optional