fromMap static method
Implementation
static LabourProfileViewSession? fromMap(Object? body) {
final source = readRecord(body);
if (source == null) return null;
return LabourProfileViewSession(
allowOvertime: readFlag(source['allow_overtime']),
availability: readList<LabourProfileViewSessionAvailability>(
source['availability'], LabourProfileViewSessionAvailability.fromMap),
endDate: readText(source['end_date']),
href: readText(source['href']),
id: readText(source['id']),
name: readText(source['name']),
object: readText(source['object']),
prices: readList<LabourProfileViewSessionPrice>(
source['prices'], LabourProfileViewSessionPrice.fromMap),
startDate: readText(source['start_date']),
status: readText(source['status']),
workingHours: readList<LabourProfileViewSessionWorkingHour>(
source['working_hours'], LabourProfileViewSessionWorkingHour.fromMap),
);
}