Artifact.fromJson constructor
Create from JSON.
Implementation
factory Artifact.fromJson(Map<String, dynamic> json) {
return Artifact(
id: json['id'] as String? ?? '',
type: json['type'] as String? ?? '',
content: json['content'],
mimeType: json['mimeType'] as String?,
fileName: json['fileName'] as String?,
metadata: json['metadata'] as Map<String, dynamic>?,
);
}