toJson method

  1. @override
Object toJson()

Implementation

@override
Object toJson() => {
  if (location.isNotDefault) 'location': location,
  'timeRange': ?timeRange?.toJson(),
};