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