toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'call_id'] = this.callId;
  json[r'call_session_id'] = this.callSessionId;
  json[r'call_type'] = this.callType;
  json[r'duration'] = this.duration;
  if (this.publisher != null) {
    json[r'publisher'] = this.publisher;
  } else {
    json[r'publisher'] = null;
  }
  if (this.subscriber != null) {
    json[r'subscriber'] = this.subscriber;
  } else {
    json[r'subscriber'] = null;
  }
  if (this.timeframe != null) {
    json[r'timeframe'] = this.timeframe;
  } else {
    json[r'timeframe'] = null;
  }
  if (this.user != null) {
    json[r'user'] = this.user;
  } else {
    json[r'user'] = null;
  }
  json[r'user_id'] = this.userId;
  json[r'user_session_id'] = this.userSessionId;
  return json;
}