fromMap static method

BookingPdfPdf? fromMap(
  1. Object? body
)

Implementation

static BookingPdfPdf? fromMap(Object? body) {
  final source = readRecord(body);
  if (source == null) return null;
  return BookingPdfPdf(
    downloadUrl: readText(source['download_url']),
    fileSize: readInteger(source['file_size']),
    id: readText(source['id']),
    object: readText(source['object']),
    previewUrl: readText(source['preview_url']),
  );
}