encode static method

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

Implementation

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