import 'package:json_annotation/json_annotation.dart'; part 'plex_role.g.dart'; @JsonSerializable() class PlexRole { final int? id; final String? filter; final String tag; final String? tagKey; final String? role; final String? thumb; final int? count; PlexRole({this.id, this.filter, required this.tag, this.tagKey, this.role, this.thumb, this.count}); factory PlexRole.fromJson(Map json) => _$PlexRoleFromJson(json); Map toJson() => _$PlexRoleToJson(this); }