import 'package:json_annotation/json_annotation.dart'; part 'headlines.g.dart'; @JsonSerializable(explicitToJson: true) class Headlines { String? id = ''; String? createTime = ''; String? createUser = ''; String? updateTime = ''; String? updateUser = ''; String? name = ''; String? introduce = ''; String? coverImg = ''; String? bannerImg = ''; int? sort = 0; int? isDelete = 0; String? tenantCode = ''; Headlines(); factory Headlines.fromJson(Map json) => _$HeadlinesFromJson(json); Map toJson() => _$HeadlinesToJson(this); }