encode static method

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

Implementation

static Map<String, dynamic> encode(InvoicingCode value) {
	switch (value) {
		case DecryptedInvoicingCode entity:
			Map<String, dynamic> entityJson = DecryptedInvoicingCode.encode(entity);
			entityJson["kotlinType"] = "com.icure.cardinal.sdk.model.embed.DecryptedInvoicingCode";
			return entityJson;
		case EncryptedInvoicingCode entity:
			Map<String, dynamic> entityJson = EncryptedInvoicingCode.encode(entity);
			entityJson["kotlinType"] = "com.icure.cardinal.sdk.model.embed.EncryptedInvoicingCode";
			return entityJson;
	}
}