The @JsonAccess annotation defined at Apex class level controls whether instances of the class can be serialized or deserialized. The serializable and deserializable parameters of the @JsonAccess annotation enforce the contexts in which Apex allows serialization and deserialization.