Last active
June 8, 2017 18:48
-
-
Save tarek360/c8e0dc1aafaca87ccf75edc6e2527108 to your computer and use it in GitHub Desktop.
Car.java annotated with @easyjson
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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