Skip to content

Instantly share code, notes, and snippets.

@tarek360
Last active June 8, 2017 18:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tarek360/c8e0dc1aafaca87ccf75edc6e2527108 to your computer and use it in GitHub Desktop.
Save tarek360/c8e0dc1aafaca87ccf75edc6e2527108 to your computer and use it in GitHub Desktop.
Car.java annotated with @easyjson
import com.tarek30.annotation.EasyJSON;
import org.json.JSONObject;
@EasyJSON
public class Car {
long modelNumber;
int maxSpeed;
String color;
String manufacturer;
String style;
String price;
public JSONObject toJson() {
return EasyJsonCar.asJSON(this);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment