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 Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['activityId'] = this.activityId;
    data['cropId'] = this.cropId;
    data['executeDate'] = this.executeDate;
    data['media'] = this.media;
    data['media_del'] = this.mediaDel;
    data['waterType'] = this.waterType;
    data['amount'] = this.amount;
    data['description'] = this.description;
    data['executeBy'] = this.executeBy;
    return data;
  }
}
