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

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

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

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