toJson method
Returns a JSON presentation of the object.
Implementation
@override
Map<String, Object> toJson() {
var result = <String, Object>{};
result['name'] = name;
result['label'] = label;
var literalValueBoolean = this.literalValueBoolean;
if (literalValueBoolean != null) {
result['literalValueBoolean'] = literalValueBoolean;
}
var literalValueInteger = this.literalValueInteger;
if (literalValueInteger != null) {
result['literalValueInteger'] = literalValueInteger;
}
var literalValueString = this.literalValueString;
if (literalValueString != null) {
result['literalValueString'] = literalValueString;
}
var nameLocation = this.nameLocation;
if (nameLocation != null) {
result['nameLocation'] = nameLocation.toJson();
}
var valueLocation = this.valueLocation;
if (valueLocation != null) {
result['valueLocation'] = valueLocation.toJson();
}
return result;
}