createAttachmentFromJson method
Creates an attachment from JSON data
Implementation
AnnotationAttachment? createAttachmentFromJson(
String attachmentId, Map<String, dynamic>? attachments) {
if (attachments == null || !attachments.containsKey(attachmentId)) {
return null;
}
return AnnotationAttachment.fromJson(
attachmentId,
attachments[attachmentId],
);
}