toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'children'] = this.children;
if (this.session != null) {
json[r'session'] = this.session;
} else {
json[r'session'] = null;
}
return json;
}