import 'package:hengyi/generated/json/base/json_convert_content.dart'; import 'package:hengyi/data/continent_entity.dart'; ContinentEntity $ContinentEntityFromJson(Map json) { final ContinentEntity continentEntity = ContinentEntity(); final int? id = jsonConvert.convert(json['id']); if (id != null) { continentEntity.id = id; } final String? partName = jsonConvert.convert(json['part_name']); if (partName != null) { continentEntity.partName = partName; } final String? partCode = jsonConvert.convert(json['part_code']); if (partCode != null) { continentEntity.partCode = partCode; } return continentEntity; } Map $ContinentEntityToJson(ContinentEntity entity) { final Map data = {}; data['id'] = entity.id; data['part_name'] = entity.partName; data['part_code'] = entity.partCode; return data; }