encode static method

Map<String, dynamic> encode(
  1. TimeTableItem value
)

Implementation

static Map<String, dynamic> encode(TimeTableItem value) {
	Map<String, dynamic> entityAsMap = {
		"rruleStartDate" : value.rruleStartDate,
		"rrule" : value.rrule,
		"notBeforeInMinutes" : value.notBeforeInMinutes,
		"notAfterInMinutes" : value.notAfterInMinutes,
		"zoneId" : value.zoneId,
		"days" : value.days.map((x0) => x0).toList(),
		"recurrenceTypes" : value.recurrenceTypes.map((x0) => x0).toList(),
		"hours" : value.hours.map((x0) => TimeTableHour.encode(x0)).toList(),
		"calendarItemTypeId" : value.calendarItemTypeId,
		"homeVisit" : value.homeVisit,
		"placeId" : value.placeId,
		"publicTimeTableItem" : value.publicTimeTableItem,
		"acceptsNewPatient" : value.acceptsNewPatient,
		"unavailable" : value.unavailable
	};
	return entityAsMap;
}