import 'dart:convert'; /// capacityRange : null /// createdAt : 1716791935255 /// id : 20 /// name : "大厅" /// price : null /// shopId : 11 /// sort : 0 /// updatedAt : 1716791935255 /// view : null TableAreaModel tableAreaModelFromJson(String str) => TableAreaModel.fromJson(json.decode(str)); String tableAreaModelToJson(TableAreaModel data) => json.encode(data.toJson()); class TableAreaModel { TableAreaModel({ dynamic capacityRange, num? createdAt, num? id, String? name, dynamic price, num? shopId, num? sort, num? updatedAt, dynamic view, }) { _capacityRange = capacityRange; _createdAt = createdAt; _id = id; _name = name; _price = price; _shopId = shopId; _sort = sort; _updatedAt = updatedAt; _view = view; } TableAreaModel.fromJson(dynamic json) { _capacityRange = json['capacityRange']; _createdAt = json['createdAt']; _id = json['id']; _name = json['name']; _price = json['price']; _shopId = json['shopId']; _sort = json['sort']; _updatedAt = json['updatedAt']; _view = json['view']; } dynamic _capacityRange; num? _createdAt; num? _id; String? _name; dynamic _price; num? _shopId; num? _sort; num? _updatedAt; dynamic _view; TableAreaModel copyWith({ dynamic capacityRange, num? createdAt, num? id, String? name, dynamic price, num? shopId, num? sort, num? updatedAt, dynamic view, }) => TableAreaModel( capacityRange: capacityRange ?? _capacityRange, createdAt: createdAt ?? _createdAt, id: id ?? _id, name: name ?? _name, price: price ?? _price, shopId: shopId ?? _shopId, sort: sort ?? _sort, updatedAt: updatedAt ?? _updatedAt, view: view ?? _view, ); dynamic get capacityRange => _capacityRange; num? get createdAt => _createdAt; num? get id => _id; String? get name => _name; dynamic get price => _price; num? get shopId => _shopId; num? get sort => _sort; num? get updatedAt => _updatedAt; dynamic get view => _view; Map toJson() { final map = {}; map['capacityRange'] = _capacityRange; map['createdAt'] = _createdAt; map['id'] = _id; map['name'] = _name; map['price'] = _price; map['shopId'] = _shopId; map['sort'] = _sort; map['updatedAt'] = _updatedAt; map['view'] = _view; return map; } }