encode static method
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()
};
return entityAsMap;
}