@Beta @Target(value=METHOD) @Retention(value=RUNTIME) public @interface SerializedNames
AutoValue
type used for json.
It also dictates the serialized naming convention of the fields. This is required as there's currently
no way to add annotations to the fields generated by AutoValue
.
Example:
{@code @AutoValue class Resource { abstract String id();
public abstract String[] value
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.