You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
950 B
Dart

// ignore_for_file: invalid_annotation_target
2 years ago
import 'package:freezed_annotation/freezed_annotation.dart';
2 years ago
part 'recent_changes.freezed.dart';
part 'recent_changes.g.dart';
2 years ago
@Freezed(copyWith: false)
class RecentChangesItem with _$RecentChangesItem {
factory RecentChangesItem({
String? type,
required int ns,
required String title,
required int pageid,
required int revid,
required DateTime timestamp,
@JsonKey(name: 'old_revid') int? oldRevid,
int? rcid,
}) = _RecentChangesItem;
2 years ago
factory RecentChangesItem.fromJson(Map<String, dynamic> json) =>
_$RecentChangesItemFromJson(json);
}
@Freezed(copyWith: false)
class RecentChangesResponse with _$RecentChangesResponse {
factory RecentChangesResponse({required List<RecentChangesItem> recentchanges}) =
_RecentChangesResponse;
2 years ago
factory RecentChangesResponse.fromJson(Map<String, dynamic> json) =>
_$RecentChangesResponseFromJson(json);
}