encode static method

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

Implementation

static Map<String, dynamic> encode(Keyword 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,
		"value" : value.value,
		"subWords" : value.subWords.map((x0) => KeywordSubword.encode(x0)).toList(),
		"userId" : value.userId
	};
	return entityAsMap;
}