encode static method

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

Implementation

static Map<String, dynamic> encode(Insurance value) {
	Map<String, dynamic> entityAsMap = {
		"id" : value.id,
		"rev" : value.rev,
		"deletionDate" : value.deletionDate,
		"name" : value.name.map((k0, v0) => MapEntry(k0, v0)),
		"privateInsurance" : value.privateInsurance,
		"hospitalisationInsurance" : value.hospitalisationInsurance,
		"ambulatoryInsurance" : value.ambulatoryInsurance,
		"code" : value.code,
		"agreementNumber" : value.agreementNumber,
		"parent" : value.parent,
		"address" : DecryptedAddress.encode(value.address)
	};
	return entityAsMap;
}