toJson method

Map toJson()

Implementation

Map toJson(){
  Map _result = {};

  if (name != null) _result.addAll({"name": name});
  if (group != null) _result.addAll({"group": group});
  if (status != null) _result.addAll({"status": status});
  if (range != null) _result.addAll({"range": range!.toJson()});
  if (value != null) _result.addAll({"value": value});

  return _result;
}