toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (lastReturnDate != null) 'lastReturnDate': lastReturnDate!,
if (numberOfDays != null) 'numberOfDays': numberOfDays!,
if (type != null) 'type': type!,
};