class End {
  int? id;
  int? cropId;
  int? activityId;
  String? executeDate;
  String? description;
  String? createdByName;
  List<String>? mediaDel;
  String? media;

  End({this.id, this.cropId, this.activityId, this.executeDate, this.description, this.createdByName, this.mediaDel, this.media});

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

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