createLog method

Future<Response> createLog(
  1. Map<String, dynamic> data
)

Implementation

Future<http.Response> createLog(Map<String, dynamic> data) async {
  return await post(
    Uri.parse('$consoleURL/mobile_app_logs'),
    headers: {
      'accept': 'application/ld+json',
      'content-type': 'application/ld+json',
    },
    body: json.encode(data),
  );
}