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