import 'Service_details.dart'; class ServiceRating { ServiceRating({ this.description, this.id, this.rating, this.reason, this.services, this.timestamp,}); ServiceRating.fromJson(dynamic json) { description = json['description']; id = json['id']; rating = json['rating']; reason = json['reason']; services = json['services'] != null ? ServiceDetail.fromJson(json['services']) : null; timestamp = json['timestamp']; } String? description; int? id; double? rating; String? reason; ServiceDetail? services; int? timestamp; Map toJson() { final map = {}; map['description'] = description; map['id'] = id; map['rating'] = rating; map['reason'] = reason; if (services != null) { map['services'] = services?.toJson(); } map['timestamp'] = timestamp; return map; } }