// models/service.dart class Service { final int id; final String name; final int price; final String? description; final int categoryId; // ubah ke categoryId (int) Service({ required this.id, required this.name, required this.price, this.description, required this.categoryId, }); factory Service.fromJson(Map json) { return Service( id: json['id'], name: json['name'], price: json['price'], description: json['description'], categoryId: json['category_id'], ); } }