Availability.fromJson constructor

Availability.fromJson(
  1. Json j
)

Parses the wire shape.

Implementation

factory Availability.fromJson(Json j) => Availability(
  online: boolOr(j, 'online'),
  withinHours: boolOr(j, 'within_hours', fallback: true),
  nextOpenAt: dateOf(j, 'next_open_at'),
  agentsOnline: intOr(j, 'agents_online'),
);