toJson method

Map<String, dynamic> toJson()

Returns the data fields of GeofenceRadius in JSON format.

Implementation

Map<String, dynamic> toJson() {
  return {
    'id': id,
    'data': data,
    'length': length,
    'status': _status,
    'activity': _activity?.toJson(),
    'speed': _speed,
    'timestamp': _timestamp,
    'remainingDistance': _remainingDistance
  };
}