toJson method
Returns a JSON representation of this object.
Implementation
Map<String, dynamic> toJson() {
return {
ApiFields.peakTime: duringPeakTime,
ApiFields.offPeakTime: offPeakTime,
ApiFields.seniorDisabled: seniorCitizen,
};
}