AnnotationAttachment.fromJson constructor

AnnotationAttachment.fromJson(
  1. String id,
  2. Map<String, dynamic> json
)

Implementation

factory AnnotationAttachment.fromJson(String id, Map<String, dynamic> json) {
  return AnnotationAttachment(
    id: id,
    binary: json['binary'] as String,
    contentType: json['contentType'] as String,
  );
}