toJson method
Implementation
Map<String, dynamic> toJson() {
var json = <String, dynamic>{};
if (type != null) {
json['type'] = type;
}
if (state != null) {
json['state'] = state;
}
if (timewindow != null) {
json['timewindow'] = timewindow;
}
if (timezone != null) {
json['timezone'] = timezone;
}
return json;
}