Check out example codes for "convert dto to dictionary c#". It will help you in understanding the concepts better.

Code Example 1

someObject.GetType()
     .GetProperties(BindingFlags.Instance | BindingFlags.Public)
          .ToDictionary(prop => prop.Name, prop => prop.GetValue(someObject, null))

Learn ReactJs, React Native from akashmittal.com