import 'package:hengyi/generated/json/base/json_field.dart'; import 'package:hengyi/generated/json/continent_entity.g.dart'; import 'dart:convert'; ///几大洲 @JsonSerializable() class ContinentEntity { late int id; @JSONField(name: "part_name") late String partName; @JSONField(name: "part_code") late String partCode; ContinentEntity(); factory ContinentEntity.fromJson(Map json) => $ContinentEntityFromJson(json); Map toJson() => $ContinentEntityToJson(this); @override String toString() { return jsonEncode(this); } }