toJson method
Returns a JSON presentation of the object.
Implementation
@override
Map<String, Object> toJson() {
var result = <String, Object>{};
var id = this.id;
if (id != null) {
result['id'] = id;
}
var element = this.element;
if (element != null) {
result['element'] = element.toJson();
}
return result;
}