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