toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'name'] = this.name;
json[r'started_at'] = this.startedAt.toUtc().toIso8601String();
if (this.streamKey != null) {
json[r'stream_key'] = this.streamKey;
} else {
json[r'stream_key'] = null;
}
if (this.streamUrl != null) {
json[r'stream_url'] = this.streamUrl;
} else {
json[r'stream_url'] = null;
}
return json;
}