title: Cross compatibility with Firebase Database (iOS and Android)
body: <p>I am currently using Firebase as the backend for an iOS and an Android application. The iOS application has been completed, but now when I am writing the application for Android, I am wondering how to structure the data so that it is consistent across iOS and Android?</p>
  
  <p>Suppose for example: </p>
  
  <p>I have a class user on the Android side that I write to the database:</p>
  
  <pre><code>public class User {
  
      public String uid;
      public String name;
      String email;
      public String gender;
      public boolean first;
      public String phone;
      public String dob;
      public String address;
  
      public User(String id,String nm,String em,String g,boolean f,String ph,String d,String add)
      {
          uid=id;
          name=nm;
          email=em;
          gender=g;
          first=f;
          phone=ph;
          dob=d;
          address=add;
      }
      public User()
      {
  
      }
  }
  </code></pre>
  
  <p>Now while reading this data on the iOS side (with something like <code>dataSnapshot.getValue(User.class)</code> in Android), <strong>how do I structure the User class in iOS?</strong>?</p>
  
  <p>Similarly, what should be my approach in the opposite case (iOS to Android)?</p>