final String id = jsonObject.getString("id");
final String name = jsonObject.getString("name");
final Boolean orderable = jsonObject.getBoolean("orderable");
final Boolean navigable = jsonObject.getBoolean("navigable");
final Boolean searchable = jsonObject.getBoolean("searchable");
final FieldType custom = jsonObject.getBoolean("custom") ? FieldType.CUSTOM : FieldType.JIRA;
final FieldSchema schema = jsonObject.has("schema") ? schemaJsonParser.parse(jsonObject.getJSONObject("schema")) : null;
return new Field(id, name, custom, orderable, navigable, searchable, schema);
}