Attachment.fromJson constructor

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

Implementation

factory Attachment.fromJson(Map<String, dynamic> json) => Attachment(
      type: json["type"],
      data: Data.fromJson(json["data"]),
    );