prepareToSend method

Map<String, dynamic> prepareToSend()

parse the data into the excpeted structure for the analytics_api

Implementation

Map<String, dynamic> prepareToSend() {
  Map<String, dynamic> data = {
    "creation_time": getTimeInFormat(collectedTime),
    "os": os,
    "device_size": deviceSize,
    "new_user": newUser,
    "country": country,
    "device_type": deviceType,
    "version": version
  };
  return data;
}