class crmSelectedProductDetailsResponse { ProductsData? productsData; String? error; String? message; crmSelectedProductDetailsResponse({this.productsData, this.error, this.message}); crmSelectedProductDetailsResponse.fromJson(Map json) { productsData = json['data'] != null ? new ProductsData.fromJson(json['data']) : null; error = json['error']; message = json['message']; } Map toJson() { final Map data = new Map(); if (this.productsData != null) { data['data'] = this.productsData!.toJson(); } data['error'] = this.error; data['message'] = this.message; return data; } } class ProductsData { String? id; String? name; String? application; String? rating; String? ratingKw; String? ordStatus; String? description; String? price; String? createdOn; String? empId; String? materialMasterId; String? isGenerator; String? isExists; String? createdDatetime; String? updatedDatetime; ProductsData( {this.id, this.name, this.application, this.rating, this.ratingKw, this.ordStatus, this.description, this.price, this.createdOn, this.empId, this.materialMasterId, this.isGenerator, this.isExists, this.createdDatetime, this.updatedDatetime}); ProductsData.fromJson(Map json) { id = json['id']; name = json['name']; application = json['application']; rating = json['rating']; ratingKw = json['rating_kw']; ordStatus = json['ord_status']; description = json['description']; price = json['price']; createdOn = json['created_on']; empId = json['emp_id']; materialMasterId = json['material_master_id']; isGenerator = json['is_generator']; isExists = json['is_exists']; createdDatetime = json['created_datetime']; updatedDatetime = json['updated_datetime']; } Map toJson() { final Map data = new Map(); data['id'] = this.id; data['name'] = this.name; data['application'] = this.application; data['rating'] = this.rating; data['rating_kw'] = this.ratingKw; data['ord_status'] = this.ordStatus; data['description'] = this.description; data['price'] = this.price; data['created_on'] = this.createdOn; data['emp_id'] = this.empId; data['material_master_id'] = this.materialMasterId; data['is_generator'] = this.isGenerator; data['is_exists'] = this.isExists; data['created_datetime'] = this.createdDatetime; data['updated_datetime'] = this.updatedDatetime; return data; } }