CPDFUnderlineAttr.fromJson constructor

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

Implementation

factory CPDFUnderlineAttr.fromJson(Map<String, dynamic> json) {
  return CPDFUnderlineAttr(
    color: HexColor.fromHex(json['color']),
    alpha: json['alpha'] ?? 255,
  );
}