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.

21 lines
499B

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