import 'dart:convert'; /// description : "string" /// id : 0 /// name : "string" /// price : 0.0 /// quantity : 0 /// timestmp : 0 ServiceModelResponse serviceModelResponseFromJson(String str) => ServiceModelResponse.fromJson(json.decode(str)); String serviceModelResponseToJson(ServiceModelResponse data) => json.encode(data.toJson()); class ServiceModelResponse { ServiceModelResponse({ this.description, this.id, this.name, this.price, this.quantity, this.timestmp,}); ServiceModelResponse.fromJson(dynamic json) { description = json['description']; id = json['id']; name = json['name']; price = json['price']; quantity = json['quantity']; timestmp = json['timestmp']; } String? description; num? id; String? name; num? price; num? quantity; num? timestmp; Map toJson() { final map = {}; map['description'] = description; map['id'] = id; map['name'] = name; map['price'] = price; map['quantity'] = quantity; map['timestmp'] = timestmp; return map; } }