import 'package:freezed_annotation/freezed_annotation.dart'; part 'link.freezed.dart'; part 'link.g.dart'; /// Represents a link in an OPDS feed @freezed class Link with _$Link { const factory Link({ /// Link relation type (e.g., 'self', 'start', 'subsection', 'http://opds-spec.org/acquisition') required String rel, /// Link URL required String href, /// MIME type of the linked resource String? type, /// Link title String? title, }) = _Link; /// Create Link from JSON factory Link.fromJson(Map json) => _$LinkFromJson(json); }