toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'is_live'] = this.isLive;
  if (this.location != null) {
    json[r'location'] = this.location;
  } else {
    json[r'location'] = null;
  }
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
  json[r'published_tracks'] = this.publishedTracks;
  if (this.publisherType != null) {
    json[r'publisher_type'] = this.publisherType;
  } else {
    json[r'publisher_type'] = null;
  }
  json[r'user_id'] = this.userId;
  json[r'user_session_id'] = this.userSessionId;
  return json;
}