Closed andressanchez closed 8 years ago
This pull request implements a new feature to wrap/unwrap classes.
public class A { @Expose public String str1; }
GsonFireBuilder gsonFireBuilder = new GsonFireBuilder() .wrap(A.class, new Mapper<A, String>() { @Override public String map(A from) { return "aWrap"; } });
GsonFireBuilder gsonFireBuilder = new GsonFireBuilder() .wrap(A.class, "aWrap");
It will be serialized to / deserialized from
{ aWrap: { str1: "v1" } }
instead of
{ str1: "v1" }
Please add changes also to the README file
This pull request implements a new feature to wrap/unwrap classes.
It will be serialized to / deserialized from
instead of