CPDFDocumentPermissionInfo.fromJson constructor

CPDFDocumentPermissionInfo.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory CPDFDocumentPermissionInfo.fromJson(Map<String, dynamic> json) {
  return CPDFDocumentPermissionInfo(
    allowsPrinting: json['allowsPrinting'] ?? false,
    allowsHighQualityPrinting: json['allowsHighQualityPrinting'] ?? false,
    allowsCopying: json['allowsCopying'] ?? false,
    allowsDocumentChanges: json['allowsDocumentChanges'] ?? false,
    allowsDocumentAssembly: json['allowsDocumentAssembly'] ?? false,
    allowsCommenting: json['allowsCommenting'] ?? false,
    allowsFormFieldEntry: json['allowsFormFieldEntry'] ?? false,
  );
}