encode static method

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

Implementation

static Map<String, dynamic> encode(Code value) {
	Map<String, dynamic> entityAsMap = {
		"id" : value.id,
		"rev" : value.rev,
		"deletionDate" : value.deletionDate,
		"context" : value.context,
		"type" : value.type,
		"code" : value.code,
		"version" : value.version,
		"label" : value.label?.map((k0, v0) => MapEntry(k0, v0)),
		"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(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
	};
	return entityAsMap;
}