CPDFUiFormPreviewStyle.fromJson constructor

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

Implementation

factory CPDFUiFormPreviewStyle.fromJson(Map<String, dynamic> json) =>
    CPDFUiFormPreviewStyle(
      style: _parseFormPreviewStyleType(json['style']),
      strokeWidth: (json['strokeWidth'] as num?)?.toDouble() ?? 2,
      color: HexColor.fromHex(json['color']),
    );