fromMap static method

Implementation

static LabourProfileViewSessionPriceHour? fromMap(Object? body) {
  final source = readRecord(body);
  if (source == null) return null;
  return LabourProfileViewSessionPriceHour(
    endTime: readText(source['end_time']),
    id: readText(source['id']),
    object: readText(source['object']),
    price: readDecimal(source['price']),
    startTime: readText(source['start_time']),
    status: readText(source['status']),
  );
}