toJson method

  1. @override
Map<String, Object> toJson()

Returns a JSON presentation of the object.

Implementation

@override
Map<String, Object> toJson() {
  var result = <String, Object>{};
  var boolValue = this.boolValue;
  if (boolValue != null) {
    result['boolValue'] = boolValue;
  }
  var doubleValue = this.doubleValue;
  if (doubleValue != null) {
    result['doubleValue'] = doubleValue;
  }
  var intValue = this.intValue;
  if (intValue != null) {
    result['intValue'] = intValue;
  }
  var stringValue = this.stringValue;
  if (stringValue != null) {
    result['stringValue'] = stringValue;
  }
  var enumValue = this.enumValue;
  if (enumValue != null) {
    result['enumValue'] = enumValue.toJson();
  }
  var expression = this.expression;
  if (expression != null) {
    result['expression'] = expression;
  }
  return result;
}