fromJson static method

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

Implementation

static CPDFWidget fromJson(Map<String, dynamic> json) {
  final type = CPDFFormType.fromString(json['type']);
  final factory = _factories[type] ?? CPDFWidget.fromJson;
  return factory(json);
}