-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Labels
Description
Description
It would be helpful to be able to change the serialized name based on the serialization group.
Example
class Person
{
/**
* @SerializedName(name="address1", groups={"registration"})
* @SerializedName(name="address2", groups={"update"})
* @Groups({"registration", "update", "view"})
* @var string
*/
public $address;
}
fabienlem, vtni, Britaliope, francoispluchino, Jibbarth and 45 moreErzender, kidager, ajdinmore, nyssLab, akalineskou and 1 more