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/community/top_detail_model.dart

31 lines
736 B

3 years ago
import 'package:json_annotation/json_annotation.dart';
import 'package:aku_new_community/model/common/img_model.dart';
part 'top_detail_model.g.dart';
@JsonSerializable()
class TopDetailModel {
final int id;
final String title;
final String content;
final int isPublic;
final int isRating;
final int dynamicNum;
final int commentNum;
final List<ImgModel> imgList;
factory TopDetailModel.fromJson(Map<String, dynamic> json) =>
_$TopDetailModelFromJson(json);
const TopDetailModel({
required this.id,
required this.title,
required this.content,
required this.isPublic,
required this.isRating,
required this.dynamicNum,
required this.commentNum,
required this.imgList,
});
}