CPDFAnnotation.fromJson constructor
CPDFAnnotation.fromJson(
- Map<String, dynamic> json
)
Implementation
factory CPDFAnnotation.fromJson(Map<String, dynamic> json) {
return CPDFAnnotation(
type: CPDFAnnotationType.fromString(json['type']),
title: json['title'] ?? '',
page: json['page'] ?? 0,
content: json['content'] ?? '',
uuid: json['uuid'] ?? '',
createDate: json['createDate'] != null
? DateTime.fromMillisecondsSinceEpoch(json['createDate'])
: null,
rect: CPDFRectF.fromJson(Map<String, dynamic>.from(json['rect'] ?? {})),
);
}