continent_entity.g.dart 931 B

123456789101112131415161718192021222324252627
  1. import 'package:fuwei/generated/json/base/json_convert_content.dart';
  2. import 'package:fuwei/data/continent_entity.dart';
  3. ContinentEntity $ContinentEntityFromJson(Map<String, dynamic> json) {
  4. final ContinentEntity continentEntity = ContinentEntity();
  5. final int? id = jsonConvert.convert<int>(json['id']);
  6. if (id != null) {
  7. continentEntity.id = id;
  8. }
  9. final String? partName = jsonConvert.convert<String>(json['part_name']);
  10. if (partName != null) {
  11. continentEntity.partName = partName;
  12. }
  13. final String? partCode = jsonConvert.convert<String>(json['part_code']);
  14. if (partCode != null) {
  15. continentEntity.partCode = partCode;
  16. }
  17. return continentEntity;
  18. }
  19. Map<String, dynamic> $ContinentEntityToJson(ContinentEntity entity) {
  20. final Map<String, dynamic> data = <String, dynamic>{};
  21. data['id'] = entity.id;
  22. data['part_name'] = entity.partName;
  23. data['part_code'] = entity.partCode;
  24. return data;
  25. }