toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'call_cid'] = this.callCid;
  json[r'created_at'] = this.createdAt.toUtc().toIso8601String();
  json[r'custom'] = this.custom;
  json[r'rating'] = this.rating;
  if (this.reason != null) {
    json[r'reason'] = this.reason;
  } else {
    json[r'reason'] = 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;
  json[r'type'] = this.type;
  json[r'user'] = this.user;
  return json;
}