encode static method

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

Implementation

static Map<String, dynamic> encode(RegimenItem value) {
	Map<String, dynamic> entityAsMap = {
		"date" : value.date,
		"dayNumber" : value.dayNumber,
		"weekday" : value.weekday == null ? null : Weekday.encode(value.weekday!),
		"dayPeriod" : value.dayPeriod == null ? null : CodeStub.encode(value.dayPeriod!),
		"timeOfDay" : value.timeOfDay,
		"administratedQuantity" : value.administratedQuantity == null ? null : AdministrationQuantity.encode(value.administratedQuantity!)
	};
	return entityAsMap;
}