encode static method

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

Implementation

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