ChannelAttachment.fromJson constructor
Create from JSON.
Implementation
factory ChannelAttachment.fromJson(Map<String, dynamic> json) {
return ChannelAttachment(
type: json['type'] as String,
url: json['url'] as String,
filename: json['filename'] as String?,
mimeType: json['mimeType'] as String?,
size: json['size'] as int?,
);
}