Creates an attachment.
const Attachment({required this.id, required this.name, required this.size, required this.type, this.url});