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.
aku_new_community/lib/model/user/blacklist_model.dart

32 lines
694 B

3 years ago
import 'package:aku_new_community/model/common/img_model.dart';
3 years ago
import 'package:json_annotation/json_annotation.dart';
import 'package:equatable/equatable.dart';
part 'blacklist_model.g.dart';
@JsonSerializable()
class BlacklistModel extends Equatable {
3 years ago
final int id;
final List<ImgModel> imgList;
final String? name;
3 years ago
final String nickName;
3 years ago
factory BlacklistModel.fromJson(Map<String, dynamic> json) =>
_$BlacklistModelFromJson(json);
3 years ago
const BlacklistModel({
3 years ago
required this.id,
required this.imgList,
3 years ago
this.name,
required this.nickName,
3 years ago
});
@override
3 years ago
List<Object?> get props => [
id,
imgList,
name,
3 years ago
nickName,
3 years ago
];
}