package at.rags.morpheus;

import android.os.Parcel;
import android.os.Parcelable;
import android.util.ArrayMap;

import java.util.HashMap;
import java.util.Objects;

/**
 * Extend this resource to your custom Object you want to map.
 * You can set custom json object names and relationships via the provided annotations.
 * <pre>
 * {@code
 * public class Article extends Resource { ... }
 * }</pre>
 *
 * @see com.google.gson.annotations.SerializedName
 * @see at.rags.morpheus.Annotations.Relationship
 */
public class Resource {
  private String Id;
  private Links links;
  private HashMap<String, Object> meta;

  public Resource() {
  }

  public HashMap<String, Object> getMeta() {
    return meta;
  }

  public void setMeta(HashMap<String, Object> meta) {
    this.meta = meta;
  }

  public Links getLinks() {
    return links;
  }

  public void setLinks(Links links) {
    this.links = links;
  }

  public String getId() {
    return Id;
  }

  public void setId(String id) {
    Id = id;
  }
}


@@ -31,71 +31,12 @@
 ort 
-android.os.Parcel;%0Aimport android.os.Parcelable;%0Aimport android
+java
 .uti
@@ -42,21 +42,21 @@
 il.Array
-Map;%0A
+List;
 %0Aimport 
@@ -77,34 +77,8 @@
 Map;
-%0Aimport java.util.Objects;
 %0A%0A/*
@@ -526,16 +526,88 @@
  meta;%0A%0A
+  private ArrayList%3CString%3E nullableRelationships = new ArrayList%3C%3E();%0A%0A
   public
@@ -986,12 +986,366 @@
  id;%0A  %7D
+%0A%0A  public ArrayList%3CString%3E getNullableRelationships() %7B%0A    return nullableRelationships;%0A  %7D%0A%0A  public void resetNullableRelationships() %7B%0A    nullableRelationships.clear();%0A  %7D%0A%0A  public void addRelationshipToNull(String relationshipName) %7B%0A    if (relationshipName == null) %7B%0A      return;%0A    %7D%0A%0A    nullableRelationships.add(relationshipName);%0A  %7D
 %0A%7D%0A%0A

Add nullableRelationships