You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			28 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Dart
		
	
			
		
		
	
	
			28 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Dart
		
	
import 'package:mohem_flutter_app/models/items_for_sale/get_regions_list.dart';
 | 
						|
import 'package:mohem_flutter_app/models/items_for_sale/get_sale_categories_list.dart';
 | 
						|
 | 
						|
class ItemReviewModel {
 | 
						|
  String? itemTitle;
 | 
						|
  String? itemDescription;
 | 
						|
  String? itemCondition;
 | 
						|
  GetRegionsList? selectedRegion;
 | 
						|
  num? itemPrice;
 | 
						|
  List<String>? itemPhotos;
 | 
						|
  GetSaleCategoriesList? selectedSaleCategory;
 | 
						|
  DateTime endDate;
 | 
						|
  ItemReviewModel(this.itemTitle, this.itemDescription, this.itemCondition, this.selectedRegion, this.itemPrice, this.itemPhotos, this.selectedSaleCategory, this.endDate);
 | 
						|
 | 
						|
  Map<String, dynamic> toJson() {
 | 
						|
    Map<String, dynamic> data = new Map<String, dynamic>();
 | 
						|
    data['itemTitle'] = this.itemTitle;
 | 
						|
    data['itemDescription'] = this.itemDescription;
 | 
						|
    data['itemCondition'] = this.itemCondition;
 | 
						|
    data['selectedRegion'] = this.selectedRegion;
 | 
						|
    data['itemPrice'] = this.itemPrice;
 | 
						|
    data['itemPhotos'] = this.itemPhotos;
 | 
						|
    data['selectedSaleCategory'] = this.selectedSaleCategory;
 | 
						|
    data['endDate'] = this.endDate;
 | 
						|
    return data;
 | 
						|
  }
 | 
						|
}
 |