getOptions static method
Implementation
static Future<PolyAppObject?> getOptions(url) async {
final Response response = await get(Uri.parse(Uri.encodeFull(url)),
headers: {HttpHeaders.acceptHeader: "application/json;charset=UTF-8"});
return response.statusCode == 200
? PolyAppObject.fromJson(jsonDecode((response.body)))
: null;
}