toJson method
Implementation
Map<String, Object?> toJson() {
var date = this.date;
var type = this.type;
var useCurrent = this.useCurrent;
final json = <String, Object?>{};
if (date != null) {
json[r'date'] = date;
}
json[r'type'] = type;
json[r'useCurrent'] = useCurrent;
return json;
}