fromJson static method

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

Implementation

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