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>{};
  result['source'] = source.toJson();
  var kind = this.kind;
  if (kind != null) {
    result['kind'] = kind;
  }
  var target = this.target;
  if (target != null) {
    result['target'] = target.toJson();
  }
  result['fact'] = fact;
  var value = this.value;
  if (value != null) {
    result['value'] = value;
  }
  return result;
}