encode static method

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

Implementation

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