CPDFImageAnnotation.fromJson constructor

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

Implementation

factory CPDFImageAnnotation.fromJson(Map<String, dynamic> json) {
  final common = CPDFAnnotation.fromJson(json);
  return CPDFImageAnnotation(
    title: common.title,
    content: common.content,
    createDate: common.createDate,
    page: common.page,
    uuid: common.uuid,
    rect: common.rect,
    image: json['image'],
  );
}