toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.durationInSeconds != null) {
    json[r'duration_in_seconds'] = this.durationInSeconds;
  } else {
    json[r'duration_in_seconds'] = null;
  }
  if (this.joinedAt != null) {
    json[r'joined_at'] = this.joinedAt!.toUtc().toIso8601String();
  } else {
    json[r'joined_at'] = null;
  }
  if (this.leftAt != null) {
    json[r'left_at'] = this.leftAt!.toUtc().toIso8601String();
  } else {
    json[r'left_at'] = null;
  }
  json[r'publisher_type'] = this.publisherType;
  json[r'roles'] = this.roles;
  json[r'user_id'] = this.userId;
  json[r'user_session_id'] = this.userSessionId;
  return json;
}