// import 'Images.dart'; // // class Service { // Service({ // this.archive, // this.description, // this.id, // this.images, // this.name, // this.nomAr, // this.price, // this.quantity, // this.ratingAverage, // this.serviceduration, // this.timestmp,}); // // Service.fromJson(dynamic json) { // archive = json['archive']; // description = json['description']; // id = json['id']; // if (json['images'] != null) { // images = []; // json['images'].forEach((v) { // images?.add(Images.fromJson(v)); // }); // } // name = json['name']; // nomAr = json['nomAr']; // price = json['price']; // quantity = json['quantity']; // ratingAverage = json['ratingAverage']; // serviceduration = json['serviceduration']; // timestmp = json['timestmp']; // } // bool? archive; // String? description; // int? id; // List? images; // String? name; // String? nomAr; // double? price; // int? quantity; // double? ratingAverage; // double? serviceduration; // int? timestmp; // // Map toJson() { // final map = {}; // map['archive'] = archive; // map['description'] = description; // map['id'] = id; // if (images != null) { // map['images'] = images?.map((v) => v.toJson()).toList(); // } // map['name'] = name; // map['nomAr'] = nomAr; // map['price'] = price; // map['quantity'] = quantity; // map['ratingAverage'] = ratingAverage; // map['serviceduration'] = serviceduration; // map['timestmp'] = timestmp; // return map; // } // // }