factory ImportedImage.fromJson(Map<String, dynamic> json) => ImportedImage(resolvedRef: json['resolved_ref'] as String, refs: (json['refs'] as List?)?.cast<String>() ?? const []);