fromMap static method

Implementation

static LabourAvailabilitySessionList? fromMap(Object? body) {
  final source = readRecord(body);
  if (source == null) return null;
  return LabourAvailabilitySessionList(
    endDate: readText(source['end_date']),
    name: readText(source['name']),
    processedScheduleList: readAny(source['processed_schedule_list']),
    scheduleList: readList<LabourAvailabilitySessionListScheduleList>(
        source['schedule_list'],
        LabourAvailabilitySessionListScheduleList.fromMap),
    startDate: readText(source['start_date']),
    uuid: readText(source['uuid']),
  );
}