class RadarAttachment { final int id; final String title; final String description; final int timeToRead; final String image; final bool forManagers; const RadarAttachment({ required this.id, required this.title, required this.description, required this.timeToRead, required this.image, required this.forManagers, }); factory RadarAttachment.fromJson(Map json) => RadarAttachment( id: json['id'], title: json['title'], description: json['description'], timeToRead: json['timeToRead'], image: json['image'], forManagers: json['forManagers'], ); Map toJson() => { 'id': id, 'title': title, 'description': description, 'timeToRead': timeToRead, 'image': image, 'forManagers': forManagers, }; }