encode static method
Implementation
static Map<String, dynamic> encode(Tarification value) {
Map<String, dynamic> entityAsMap = {
"id" : value.id,
"rev" : value.rev,
"deletionDate" : value.deletionDate,
"label" : value.label?.map((k0, v0) => MapEntry(k0, v0)),
"context" : value.context,
"type" : value.type,
"code" : value.code,
"version" : value.version,
"author" : value.author,
"regions" : value.regions.map((x0) => x0).toList(),
"periodicity" : value.periodicity.map((x0) => Periodicity.encode(x0)).toList(),
"level" : value.level,
"links" : value.links.map((x0) => x0).toList(),
"qualifiedLinks" : value.qualifiedLinks.map((k0, v0) => MapEntry(LinkQualification.encode(k0), v0.map((x1) => x1).toList())),
"flags" : value.flags.map((x0) => CodeFlag.encode(x0)).toList(),
"searchTerms" : value.searchTerms.map((k0, v0) => MapEntry(k0, v0.map((x1) => x1).toList())),
"data" : value.data,
"appendices" : value.appendices.map((k0, v0) => MapEntry(AppendixType.encode(k0), v0)),
"disabled" : value.disabled,
"valorisations" : value.valorisations.map((x0) => DecryptedValorisation.encode(x0)).toList(),
"category" : value.category.map((k0, v0) => MapEntry(k0, v0)),
"consultationCode" : value.consultationCode,
"hasRelatedCode" : value.hasRelatedCode,
"needsPrescriber" : value.needsPrescriber,
"relatedCodes" : value.relatedCodes.map((x0) => x0).toList(),
"nGroup" : value.ngroup,
"letterValues" : value.letterValues.map((x0) => LetterValue.encode(x0)).toList()
};
return entityAsMap;
}