CPDFInkAnnotation.fromJson constructor
CPDFInkAnnotation.fromJson(
- Map<String, dynamic> json
)
Implementation
factory CPDFInkAnnotation.fromJson(Map<String, dynamic> json) {
final common = CPDFAnnotation.fromJson(json);
return CPDFInkAnnotation(
type: common.type,
title: common.title,
page: common.page,
content: common.content,
uuid: common.uuid,
createDate: common.createDate,
rect: common.rect,
color: HexColor.fromHex(json['color'] ?? '#000000'),
alpha: json['alpha'] ?? 255.0,
borderWidth: json['borderWidth'] ?? 0,
);
}