@Nullable
public static Address fromJson(@Nullable JSONObject jsonObject) {
if (jsonObject == null) {
return null;
}
String city = optString(jsonObject, FIELD_CITY);
String country = optString(jsonObject, FIELD_COUNTRY);
String line1 = optString(jsonObject, FIELD_LINE_1);
String line2 = optString(jsonObject, FIELD_LINE_2);
String postalCode = optString(jsonObject, FIELD_POSTAL_CODE);
String state = optString(jsonObject, FIELD_STATE);
return new Address(city, country, line1, line2, postalCode, state);
}