Check out example codes for "Type is not marked as serializable.". It will help you in understanding the concepts better.

Code Example 1

[Serializable]
public class OrgPermission

Learn ReactJs, React Native from akashmittal.com