toJson method

Map toJson()

Implementation

Map toJson(){
  Map _result = {};

  if (type != null) _result.addAll({"type": type});
  if (value != null) _result.addAll({"value": value});

  return _result;
}