toJson method

Map<String, dynamic> toJson()

Implementation

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