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