toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.browser != null) {
    json[r'browser'] = this.browser;
  } else {
    json[r'browser'] = null;
  }
  if (this.browserVersion != null) {
    json[r'browser_version'] = this.browserVersion;
  } else {
    json[r'browser_version'] = null;
  }
  if (this.currentIp != null) {
    json[r'current_ip'] = this.currentIp;
  } else {
    json[r'current_ip'] = null;
  }
  if (this.currentSfu != null) {
    json[r'current_sfu'] = this.currentSfu;
  } else {
    json[r'current_sfu'] = null;
  }
  if (this.deviceModel != null) {
    json[r'device_model'] = this.deviceModel;
  } else {
    json[r'device_model'] = null;
  }
  if (this.deviceVersion != null) {
    json[r'device_version'] = this.deviceVersion;
  } else {
    json[r'device_version'] = null;
  }
  if (this.distanceToSfuKilometers != null) {
    json[r'distance_to_sfu_kilometers'] = this.distanceToSfuKilometers;
  } else {
    json[r'distance_to_sfu_kilometers'] = null;
  }
    json[r'freeze_duration_seconds'] = this.freezeDurationSeconds;
  if (this.geolocation != null) {
    json[r'geolocation'] = this.geolocation;
  } else {
    json[r'geolocation'] = null;
  }
  if (this.jitter != null) {
    json[r'jitter'] = this.jitter;
  } else {
    json[r'jitter'] = null;
  }
  if (this.latency != null) {
    json[r'latency'] = this.latency;
  } else {
    json[r'latency'] = null;
  }
  if (this.maxFirPerSecond != null) {
    json[r'max_fir_per_second'] = this.maxFirPerSecond;
  } else {
    json[r'max_fir_per_second'] = null;
  }
    json[r'max_freeze_fraction'] = this.maxFreezeFraction;
    json[r'max_freezes_duration_seconds'] = this.maxFreezesDurationSeconds;
  if (this.maxFreezesPerSecond != null) {
    json[r'max_freezes_per_second'] = this.maxFreezesPerSecond;
  } else {
    json[r'max_freezes_per_second'] = null;
  }
  if (this.maxNackPerSecond != null) {
    json[r'max_nack_per_second'] = this.maxNackPerSecond;
  } else {
    json[r'max_nack_per_second'] = null;
  }
  if (this.maxPliPerSecond != null) {
    json[r'max_pli_per_second'] = this.maxPliPerSecond;
  } else {
    json[r'max_pli_per_second'] = null;
  }
  if (this.maxPublishingVideoQuality != null) {
    json[r'max_publishing_video_quality'] = this.maxPublishingVideoQuality;
  } else {
    json[r'max_publishing_video_quality'] = null;
  }
  if (this.maxReceivingVideoQuality != null) {
    json[r'max_receiving_video_quality'] = this.maxReceivingVideoQuality;
  } else {
    json[r'max_receiving_video_quality'] = null;
  }
    json[r'min_event_ts'] = this.minEventTs;
  if (this.os != null) {
    json[r'os'] = this.os;
  } else {
    json[r'os'] = null;
  }
  if (this.osVersion != null) {
    json[r'os_version'] = this.osVersion;
  } else {
    json[r'os_version'] = null;
  }
    json[r'packet_loss_fraction'] = this.packetLossFraction;
  if (this.pubSubHints != null) {
    json[r'pub_sub_hints'] = this.pubSubHints;
  } else {
    json[r'pub_sub_hints'] = null;
  }
    json[r'published_tracks'] = this.publishedTracks;
  if (this.publisherAudioMos != null) {
    json[r'publisher_audio_mos'] = this.publisherAudioMos;
  } else {
    json[r'publisher_audio_mos'] = null;
  }
  if (this.publisherJitter != null) {
    json[r'publisher_jitter'] = this.publisherJitter;
  } else {
    json[r'publisher_jitter'] = null;
  }
  if (this.publisherLatency != null) {
    json[r'publisher_latency'] = this.publisherLatency;
  } else {
    json[r'publisher_latency'] = null;
  }
  if (this.publisherNoiseCancellationSeconds != null) {
    json[r'publisher_noise_cancellation_seconds'] = this.publisherNoiseCancellationSeconds;
  } else {
    json[r'publisher_noise_cancellation_seconds'] = null;
  }
    json[r'publisher_packet_loss_fraction'] = this.publisherPacketLossFraction;
  if (this.publisherQualityLimitationFraction != null) {
    json[r'publisher_quality_limitation_fraction'] = this.publisherQualityLimitationFraction;
  } else {
    json[r'publisher_quality_limitation_fraction'] = null;
  }
    json[r'publisher_video_quality_limitation_duration_seconds'] = this.publisherVideoQualityLimitationDurationSeconds;
  if (this.publishingAudioCodec != null) {
    json[r'publishing_audio_codec'] = this.publishingAudioCodec;
  } else {
    json[r'publishing_audio_codec'] = null;
  }
    json[r'publishing_duration_seconds'] = this.publishingDurationSeconds;
  if (this.publishingVideoCodec != null) {
    json[r'publishing_video_codec'] = this.publishingVideoCodec;
  } else {
    json[r'publishing_video_codec'] = null;
  }
    json[r'quality_score'] = this.qualityScore;
  if (this.receivingAudioCodec != null) {
    json[r'receiving_audio_codec'] = this.receivingAudioCodec;
  } else {
    json[r'receiving_audio_codec'] = null;
  }
    json[r'receiving_duration_seconds'] = this.receivingDurationSeconds;
  if (this.receivingVideoCodec != null) {
    json[r'receiving_video_codec'] = this.receivingVideoCodec;
  } else {
    json[r'receiving_video_codec'] = null;
  }
  if (this.sdk != null) {
    json[r'sdk'] = this.sdk;
  } else {
    json[r'sdk'] = null;
  }
  if (this.sdkVersion != null) {
    json[r'sdk_version'] = this.sdkVersion;
  } else {
    json[r'sdk_version'] = null;
  }
    json[r'session_id'] = this.sessionId;
  if (this.subscriberAudioMos != null) {
    json[r'subscriber_audio_mos'] = this.subscriberAudioMos;
  } else {
    json[r'subscriber_audio_mos'] = null;
  }
  if (this.subscriberJitter != null) {
    json[r'subscriber_jitter'] = this.subscriberJitter;
  } else {
    json[r'subscriber_jitter'] = null;
  }
  if (this.subscriberLatency != null) {
    json[r'subscriber_latency'] = this.subscriberLatency;
  } else {
    json[r'subscriber_latency'] = null;
  }
  if (this.subscriberVideoQualityThrottledDurationSeconds != null) {
    json[r'subscriber_video_quality_throttled_duration_seconds'] = this.subscriberVideoQualityThrottledDurationSeconds;
  } else {
    json[r'subscriber_video_quality_throttled_duration_seconds'] = null;
  }
    json[r'subsessions'] = this.subsessions;
  if (this.timeline != null) {
    json[r'timeline'] = this.timeline;
  } else {
    json[r'timeline'] = null;
  }
    json[r'total_pixels_in'] = this.totalPixelsIn;
    json[r'total_pixels_out'] = this.totalPixelsOut;
  if (this.truncated != null) {
    json[r'truncated'] = this.truncated;
  } else {
    json[r'truncated'] = null;
  }
  if (this.webrtcVersion != null) {
    json[r'webrtc_version'] = this.webrtcVersion;
  } else {
    json[r'webrtc_version'] = null;
  }
  return json;
}