toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  var obj = <String, dynamic>{};
  obj["displayName"] = displayName;
  obj["osName"] = osName;
  obj["deviceType"] = deviceType;
  obj["make"] = make;
  obj["model"] = model;
  obj["osVersion"] = osVersion;
  obj["remoteId"] = remoteId;
  if (x != null && y != null) {
    obj["lastLocation"] = {
      "x": x,
      "y": y
    };
  }
  obj["lastAppVersionCode"] = lastAppVersionCode;
  obj["lastAppVersionName"] = lastAppVersionName;
  obj["pushId"] = pushId;
  obj["allowPush"] = allowPush;
  obj["meta"] = meta;
  return obj;
}