encode static method

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

Implementation

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