| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- import 'dart:core';
- /// @author: bo.zeng
- /// @email: cnhbwds@gmail.com
- /// @date: 2025 2025/4/9 16:00
- /// @description:
- class TopicHotModel {
- TopicHotModel({String? image, String? title, String? contentId}) {
- _image = image;
- _title = title;
- _contentId = contentId;
- }
- TopicHotModel.fromJson(Map<String, dynamic> json) {
- _image = json['image'];
- _title = json['title'];
- _contentId = json['contentId'];
- }
- String? _image;
- String? _title;
- String? _contentId;
- TopicHotModel copyWith({String? image, String? title, String? contentId}) =>
- TopicHotModel(
- image: image ?? _image,
- title: title ?? _title,
- contentId: contentId ?? _contentId,
- );
- String? get image => _image;
- String? get title => _title;
- String? get contentId => _contentId;
- Map<String, dynamic> toJson() {
- final map = <String, dynamic>{};
- map['image'] = _image;
- map['title'] = _title;
- map['contentId'] = _contentId;
- return map;
- }
- }
|