CPDFSoundAnnotation.fromJson constructor

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

Implementation

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