toJson method
Implementation
Map<String, dynamic> toJson() {
final numberOfDays = this.numberOfDays;
final unlimited = this.unlimited;
return {
if (numberOfDays != null) 'numberOfDays': numberOfDays,
if (unlimited != null) 'unlimited': unlimited,
};
}