CPDFInfo.fromJson constructor

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

Implementation

factory CPDFInfo.fromJson(Map<String, dynamic> json) {
  return CPDFInfo(
    title: json['title'] ?? '',
    author: json['author'] ?? '',
    subject: json['subject'] ?? '',
    keywords: json['keywords'] ?? '',
    creator: json['creator'] ?? '',
    producer: json['producer'] ?? '',
    creationDate: json['creationDate'] != null
        ? DateTime.fromMillisecondsSinceEpoch(json['creationDate'])
        : null,
    modificationDate: json['modificationDate'] != null
        ? DateTime.fromMillisecondsSinceEpoch(json['modificationDate'])
        : null,
  );
}