encode static method

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

Implementation

static Map<String, dynamic> encode(Agenda value) {
	Map<String, dynamic> entityAsMap = {
		"id" : value.id,
		"rev" : value.rev,
		"created" : value.created,
		"modified" : value.modified,
		"author" : value.author,
		"responsible" : value.responsible,
		"medicalLocationId" : value.medicalLocationId,
		"tags" : value.tags.map((x0) => CodeStub.encode(x0)).toList(),
		"codes" : value.codes.map((x0) => CodeStub.encode(x0)).toList(),
		"endOfLife" : value.endOfLife,
		"deletionDate" : value.deletionDate,
		"name" : value.name,
		"userId" : value.userId,
		"rights" : value.rights.map((x0) => Right.encode(x0)).toList(),
		"userRights" : value.userRights.map((k0, v0) => MapEntry(k0, UserAccessLevel.encode(v0))),
		"properties" : value.properties.map((x0) => DecryptedPropertyStub.encode(x0)).toList(),
		"timeTables" : value.timeTables.map((x0) => EmbeddedTimeTable.encode(x0)).toList()
	};
	return entityAsMap;
}