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

28 lines
792 B

import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';
3 years ago
import 'package:aku_new_community/model/community/activity_item_model.dart';
import 'package:aku_new_community/model/community/community_topic_model.dart';
part 'search_model.g.dart';
@JsonSerializable()
class SearchModel extends Equatable {
final List<ActivityItemModel?> activityVoList;
final List<CommunityTopicModel?> gambitVoList;
3 years ago
SearchModel({
required this.activityVoList,
required this.gambitVoList,
});
3 years ago
factory SearchModel.fromJson(Map<String, dynamic> json) =>
_$SearchModelFromJson(json);
3 years ago
factory SearchModel.init() =>
SearchModel(activityVoList: [], gambitVoList: []);
3 years ago
@override
List<Object> get props => [activityVoList, gambitVoList];
}