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/models/news/news_detail_model.dart

42 lines
867 B

import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';
part 'news_detail_model.g.dart';
@JsonSerializable()
class NewsDetailModel extends Equatable {
final int id;
final String code;
final String title;
final String content;
final String newsCategoryName;
final String createName;
final String createDate;
3 years ago
NewsDetailModel({
required this.id,
required this.code,
required this.title,
required this.content,
required this.newsCategoryName,
required this.createName,
required this.createDate,
});
3 years ago
factory NewsDetailModel.fromJson(Map<String, dynamic> json) =>
_$NewsDetailModelFromJson(json);
3 years ago
@override
List<Object> get props {
return [
id,
code,
title,
content,
newsCategoryName,
createName,
createDate,
];
}
}