// // AUTO-GENERATED FILE, DO NOT MODIFY! // // ignore_for_file: unused_element import 'package:fintracker_api/src/model/event_out.dart'; import 'package:copy_with_extension/copy_with_extension.dart'; import 'package:json_annotation/json_annotation.dart'; part 'event_page.g.dart'; @CopyWith() @JsonSerializable( checked: true, createToJson: true, disallowUnrecognizedKeys: false, explicitToJson: true, ) class EventPage { /// Returns a new [EventPage] instance. EventPage({ required this.items, required this.page, required this.pageSize, required this.total, }); @JsonKey( name: r'items', required: true, includeIfNull: false, ) final List items; @JsonKey( name: r'page', required: true, includeIfNull: false, ) final int page; @JsonKey( name: r'page_size', required: true, includeIfNull: false, ) final int pageSize; @JsonKey( name: r'total', required: true, includeIfNull: false, ) final int total; @override bool operator ==(Object other) => identical(this, other) || other is EventPage && other.items == items && other.page == page && other.pageSize == pageSize && other.total == total; @override int get hashCode => items.hashCode + page.hashCode + pageSize.hashCode + total.hashCode; factory EventPage.fromJson(Map json) => _$EventPageFromJson(json); Map toJson() => _$EventPageToJson(this); @override String toString() { return toJson().toString(); } }