class UseWater {
  int? id;
  int? activityId;
  int? cropId;
  String? executeDate;
  String? media;
  List<String>? mediaDel;
  String? waterType;
  num? amount;
  String? description;
  String? executeBy;

  UseWater(
      {this.id,
      this.activityId,
      this.cropId,
      this.executeDate,
      this.media,
      this.mediaDel,
      this.waterType,
      this.amount,
      this.description,
      this.executeBy});

  UseWater.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    activityId = json['activityId'];
    cropId = json['cropId'];
    executeDate = json['executeDate'];
    media = json['media'];
    waterType = json['waterType'];
    amount = json['amount'];
    description = json['description'];
    executeBy = json['executeBy'];
  }

  Map<String, dynamic> toJson() {
    final data = <String, dynamic>{};
    data['id'] = id;
    data['activityId'] = activityId;
    data['cropId'] = cropId;
    data['executeDate'] = executeDate;
    data['media'] = media;
    data['media_del'] = mediaDel;
    data['waterType'] = waterType;
    data['amount'] = amount;
    data['description'] = description;
    data['executeBy'] = executeBy;
    return data;
  }
}
