this repo has no description
at main 24 lines 716 B view raw
1import 'package:json_annotation/json_annotation.dart'; 2 3part 'apply_sort_request.g.dart'; 4 5@JsonSerializable() 6class ApplySortRequest { 7 final List<ApplySortUpdate> writes; 8 9 ApplySortRequest({required this.writes}); 10 11 factory ApplySortRequest.fromJson(Map<String, dynamic> json) => _$ApplySortRequestFromJson(json); 12 Map<String, dynamic> toJson() => _$ApplySortRequestToJson(this); 13} 14 15@JsonSerializable() 16class ApplySortUpdate { 17 final String itemUri; 18 final int position; 19 20 ApplySortUpdate({required this.itemUri, required this.position}); 21 22 factory ApplySortUpdate.fromJson(Map<String, dynamic> json) => _$ApplySortUpdateFromJson(json); 23 Map<String, dynamic> toJson() => _$ApplySortUpdateToJson(this); 24}