fromWire static method
- String? value
Parses a wire string representation into an AttachmentKind.
Returns AttachmentKind.image if value is 'image', otherwise defaults to AttachmentKind.r2.
Example
final kind = AttachmentKind.fromWire('r2'); // AttachmentKind.r2
Implementation
static AttachmentKind fromWire(String? value) {
if (value == 'image') return AttachmentKind.image;
return AttachmentKind.r2;
}