UnknownAttachment.fromJson constructor

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

Implementation

factory UnknownAttachment.fromJson(Map<String, dynamic> json) {
  return UnknownAttachment(
    type: json['type'] as String? ?? 'unknown',
    raw: json,
  );
}