class CropStatus {
  int? id;
  int? cropId;
  int? activityId;
  String? executeDate;
  String? cropRate;
  String? numberOfTreeToGrow;
  String? heightOfTree;
  String? numberOfLeaf;
  String? leafSize;
  String? leafColor;
  String? abilityProduceBuds;
  String? internodeLength;
  String? description;
  String? executeBy;
  String? media;
  List<String>? mediaDel;

  CropStatus(
      {this.id,
      this.cropId,
      this.activityId,
      this.executeDate,
      this.cropRate,
      this.numberOfTreeToGrow,
      this.heightOfTree,
      this.numberOfLeaf,
      this.leafSize,
      this.leafColor,
      this.abilityProduceBuds,
      this.internodeLength,
      this.description,
      this.executeBy,
      this.media,
      this.mediaDel});

  CropStatus.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    cropId = json['cropId'];
    activityId = json['activityId'];
    executeDate = json['executeDate'];
    cropRate = json['cropRate'];
    numberOfTreeToGrow = json['numberOfTreeToGrow'];
    heightOfTree = json['heightOfTree'];
    numberOfLeaf = json['numberOfLeaf'];
    leafSize = json['leafSize'];
    leafColor = json['leafColor'];
    abilityProduceBuds = json['abilityProduceBuds'];
    internodeLength = json['internodeLength'];
    description = json['description'];
    executeBy = json['executeBy'];
    media = json['media'];
  }

  Map<String, dynamic> toJson() {
    final data = <String, dynamic>{};
    data['id'] = id;
    data['cropId'] = cropId;
    data['activityId'] = activityId;
    data['executeDate'] = executeDate;
    data['cropRate'] = cropRate;
    data['numberOfTreeToGrow'] = numberOfTreeToGrow;
    data['heightOfTree'] = heightOfTree;
    data['numberOfLeaf'] = numberOfLeaf;
    data['leafSize'] = leafSize;
    data['leafColor'] = leafColor;
    data['abilityProduceBuds'] = abilityProduceBuds;
    data['internodeLength'] = internodeLength;
    data['description'] = description;
    data['executeBy'] = executeBy;
    data['media'] = media;
    data['media_del'] = mediaDel;
    return data;
  }
}
