ChannelAttachment.fromJson constructor

ChannelAttachment.fromJson(
  1. Map<String, dynamic> json
)

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?,
  );
}