You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
514B

  1. import 'package:json_annotation/json_annotation.dart';
  2. import "nurseryDetail.dart";
  3. part 'nursery.g.dart';
  4. @JsonSerializable()
  5. class Nursery {
  6. Nursery();
  7. num id;
  8. num cropId;
  9. String executeDate;
  10. String description;
  11. String substrates;
  12. num quantity;
  13. num seedLength;
  14. num seedIncubationTime;
  15. List<NurseryDetail> nurseryDetail;
  16. factory Nursery.fromJson(Map<String,dynamic> json) => _$NurseryFromJson(json);
  17. Map<String, dynamic> toJson() => _$NurseryToJson(this);
  18. }