ChatAttachmentAttachment.fromJson constructor

ChatAttachmentAttachment.fromJson(
  1. Map map
)

Implementation

factory ChatAttachmentAttachment.fromJson(Map map) {
  String? name = map['name'];
  String? localUrl = map['localUrl'];
  String? mimeType = map['mimeType'];
  int? size = map['size'];
  String? url = map['url'];
  String? attachmentError = map['error'];

  return ChatAttachmentAttachment(
    name,
    localUrl,
    mimeType,
    size,
    url,
    attachmentError,
  );
}