fromMap static method

Implementation

static LabourLabourCustomAvailability? fromMap(Object? body) {
  final source = readRecord(body);
  if (source == null) return null;
  return LabourLabourCustomAvailability(
    available: readFlag(source['available']),
    endTime: readText(source['end_time']),
    id: readText(source['id']),
    object: readText(source['object']),
    preferredDay: readText(source['preferred_day']),
    startTime: readText(source['start_time']),
  );
}