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