toJson method

Json toJson()

The wire shape.

Implementation

Json toJson() => compact({
  'online': online,
  'within_hours': withinHours,
  'next_open_at': nextOpenAt?.toUtc().toIso8601String(),
  'agents_online': agentsOnline,
});