toMap method

JsonMap toMap()

Implementation

JsonMap toMap() => {
      'enabled': enabled,
      'isMoving': isMoving,
      if (schedulerEnabled != null) 'schedulerEnabled': schedulerEnabled,
      if (odometer != null) 'odometer': odometer,
      if (location != null) 'location': location!.toMap(),
      if (extras != null) 'extras': extras,
    };