encode static method

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

Implementation

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