toJsonLd method
Serialize SchemaSchedule to JSON-LD
Implementation
@override
Map<String, dynamic> toJsonLd() => removeEmpty({
...super.toJsonLd(),
'@type': 'Schedule',
'byDay': convertToJsonLd(byDay, [SchemaDayOfWeek, String]),
'byMonth': convertToJsonLd(byMonth, [int]),
'byMonthDay': convertToJsonLd(byMonthDay, [int]),
'byMonthWeek': convertToJsonLd(byMonthWeek, [int]),
'duration': convertToJsonLd(
duration, [SchemaDuration, SchemaQuantitativeValue]),
'endDate': convertToJsonLd(endDate, [String]),
'endTime': convertToJsonLd(endTime, [String]),
'exceptDate': convertToJsonLd(exceptDate, [String]),
'repeatCount': convertToJsonLd(repeatCount, [int]),
'repeatFrequency':
convertToJsonLd(repeatFrequency, [SchemaDuration, String]),
'scheduleTimezone': convertToJsonLd(scheduleTimezone, [String]),
'startDate': convertToJsonLd(startDate, [String]),
'startTime': convertToJsonLd(startTime, [String]),
});