handleJSONResponse function

Map<String, dynamic> handleJSONResponse({
  1. bool status = false,
  2. String value = '',
})

Handles the JSON response for IP address retrieval.

Returns: A Map representing the JSON response with 'status' and 'ip_address' keys.

Implementation

Map<String, dynamic> handleJSONResponse({
  bool status = false,
  String value = '',
}) {
  return {'status': status, 'ip_address': value};
}