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