get library

Functions

get(Uri url) Future<Map<String, dynamic>>
This function retrieves data from the specified URL and returns a JSON object. If the response is null, it returns an error object with "error: true" field. Otherwise, it returns an object with "error: false" field and the response data.