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
523B

  1. import 'package:json_annotation/json_annotation.dart';
  2. import "plot.dart";
  3. import "historyAction.dart";
  4. part 'Crop.g.dart';
  5. @JsonSerializable()
  6. class Crop {
  7. Crop();
  8. Plot tbCropDTO;
  9. List<HistoryAction> activities;
  10. String sowingDate;
  11. num soakSeedsTime;
  12. num seedIncubationTime;
  13. num numberPlants;
  14. num numberCurrentPlants;
  15. String endOfFarmingDate;
  16. factory Crop.fromJson(Map<String,dynamic> json) => _$CropFromJson(json);
  17. Map<String, dynamic> toJson() => _$CropToJson(this);
  18. }