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 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 toJson() { final map = {}; map['image'] = _image; map['title'] = _title; map['contentId'] = _contentId; return map; } }