private Checkin(Parcel in) {
    mCreated = ParcelUtils.readStringFromParcel(in);
    mDisplay = ParcelUtils.readStringFromParcel(in);
    mDistance = ParcelUtils.readStringFromParcel(in);
    mId = ParcelUtils.readStringFromParcel(in);
    mIsmayor = in.readInt() == 1;
    mPing = in.readInt() == 1;
    mShout = ParcelUtils.readStringFromParcel(in);

    if (in.readInt() == 1) {
      mUser = in.readParcelable(User.class.getClassLoader());
    }

    if (in.readInt() == 1) {
      mVenue = in.readParcelable(Venue.class.getClassLoader());
    }
  }
  @Override
  public void writeToParcel(Parcel out, int flags) {
    ParcelUtils.writeStringToParcel(out, mCreated);
    ParcelUtils.writeStringToParcel(out, mDisplay);
    ParcelUtils.writeStringToParcel(out, mDistance);
    ParcelUtils.writeStringToParcel(out, mId);
    out.writeInt(mIsmayor ? 1 : 0);
    out.writeInt(mPing ? 1 : 0);
    ParcelUtils.writeStringToParcel(out, mShout);

    if (mUser != null) {
      out.writeInt(1);
      out.writeParcelable(mUser, flags);
    } else {
      out.writeInt(0);
    }

    if (mVenue != null) {
      out.writeInt(1);
      out.writeParcelable(mVenue, flags);
    } else {
      out.writeInt(0);
    }
  }