Attachments.fromJson constructor

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

Implementation

Attachments.fromJson(Map<String, dynamic> json) {
  label = json['label'];
  id = json['id'];
  url = json['url'];
  permission = json['permission'] != null
      ? Permission.fromJson(json['permission'])
      : null;
  preModal = json['preModal'];
}