import 'package:json_annotation/json_annotation.dart'; part 'article.g.dart'; @JsonSerializable() class Article { int? count; List? item; @JsonKey(name: 'lists_count') int? listsCount; List? lists; Article({this.count, this.item, this.listsCount, this.lists}); factory Article.fromJson(Map json) { return _$ArticleFromJson(json); } Map toJson() => _$ArticleToJson(this); }