Closed Zalastax closed 9 years ago
Added support for @property.
Nice work. Will look at it over the weekend.
When you say:
@SerializedToName("toAndFrom") y;
Did you mean:
@SerializedName("toAndFrom") y;
About dfmt. Think that at the moment it does not support in place fixing (which is weird because dfix from the same author does exactly that). So the only solution is to run it, pipe it to a separate file and then replace the original file. I'd be happy to do that after merging.
Yeah I meant:
@SerializedName("toAndFrom") y;
I'm not sure if the serializationFromName and serializationToName functions should be in the annotations module but I think they fitted best there. Maybe a new module instead but I don't want module bloat.
Thanks, looks great.
@SerializedName("to","from") x; @SerializedToName("toAndFrom") y; @SerializedToName("to") @SerializedFromName("from") z; @SerializedToName("to") w; Should all work.
Please run dfmt on painlessjson. I tried but it wanted to modify the whole file for me.