fromMap static method

LabourProfileList? fromMap(
  1. Object? body
)

Implementation

static LabourProfileList? fromMap(Object? body) {
  final source = readRecord(body);
  if (source == null) return null;
  return LabourProfileList(
    data: readList<LabourProfile>(source['data'], LabourProfile.fromMap),
    object: readText(source['object']),
    pagination: Pagination.fromMap(source['pagination']),
    url: readText(source['url']),
  );
}