Factory for creating a PdfElement from a JSON map.
factory PdfElement.fromJson(Map<String, dynamic> json) => _$PdfElementFromJson(json);