toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'object'] = this.object;
  json[r'id'] = this.id;
  if (this.deviceType != null) {
    json[r'device_type'] = this.deviceType;
  } else {
    json[r'device_type'] = null;
  }
  json[r'is_mobile'] = this.isMobile;
  if (this.browserName != null) {
    json[r'browser_name'] = this.browserName;
  } else {
    json[r'browser_name'] = null;
  }
  if (this.browserVersion != null) {
    json[r'browser_version'] = this.browserVersion;
  } else {
    json[r'browser_version'] = null;
  }
  if (this.ipAddress != null) {
    json[r'ip_address'] = this.ipAddress;
  } else {
    json[r'ip_address'] = null;
  }
  if (this.city != null) {
    json[r'city'] = this.city;
  } else {
    json[r'city'] = null;
  }
  if (this.country != null) {
    json[r'country'] = this.country;
  } else {
    json[r'country'] = null;
  }
  return json;
}