FeedbackAttachment.fromJson constructor
Deserializes FeedbackAttachment from a JSON map.
Implementation
factory FeedbackAttachment.fromJson(Map<String, dynamic> json) {
return FeedbackAttachment(
kind: AttachmentKind.fromWire(json['kind'] as String?),
key: json['key'] as String? ?? json['id'] as String? ?? '',
url: json['url'] as String? ?? '',
filename: json['filename'] as String?,
mimeType: json['mimeType'] as String?,
size: (json['size'] as num?)?.toInt(),
);
}