toJson method

Map toJson()

Implementation

Map toJson(){
  Map _result = {};

  if (data != null) _result.addAll({"data": data});
  if (fieldType != null) _result.addAll({"fieldType": fieldType});

  return _result;
}