fromMap static method

OrderPdfPdf? fromMap(
  1. Object? body
)

Implementation

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