import 'package:json_annotation/json_annotation.dart'; part 'apply_sort_request.g.dart'; @JsonSerializable() class ApplySortRequest { final List writes; ApplySortRequest({required this.writes}); factory ApplySortRequest.fromJson(Map json) => _$ApplySortRequestFromJson(json); Map toJson() => _$ApplySortRequestToJson(this); } @JsonSerializable() class ApplySortUpdate { final String itemUri; final int position; ApplySortUpdate({required this.itemUri, required this.position}); factory ApplySortUpdate.fromJson(Map json) => _$ApplySortUpdateFromJson(json); Map toJson() => _$ApplySortUpdateToJson(this); }