glglove 4 months ago
parent
commit
012adef1ef

+ 0 - 54
packages/cpt_property/lib/modules/news/page/property_news_state.dart

@@ -1,54 +0,0 @@
-class PropertyNewsState {
-  int? id;
-  String? title;
-  String? description;
-  String? time;
-  int? isCollection;
-  String? pic;
-
-  PropertyNewsState(
-      {this.id,
-        this.title,
-        this.description,
-        this.time,
-        this.isCollection,
-        this.pic});
-
-  PropertyNewsState.fromJson(Map<String, dynamic> json) {
-    id = json['id'];
-    title = json['title'];
-    description = json['description'];
-    time = json['time'];
-    isCollection = json['isCollection'];
-    pic = json['pic'];
-  }
-
-  Map<String, dynamic> toJson() {
-    final Map<String, dynamic> data = new Map<String, dynamic>();
-    data['id'] = id;
-    data['title'] = title;
-    data['description'] = description;
-    data['time'] = time;
-    data['isCollection'] = isCollection;
-    data['pic'] = pic;
-    return data;
-  }
-
-  PropertyNewsState CopyWith({
-    required id,
-    required title,
-    required description,
-    required time,
-    required isCollection,
-    required pic,
-  }){
-    return PropertyNewsState(
-      id: id?? this.id,
-      title: title?? this.title,
-      description: description?? this.description,
-      time: time?? this.time,
-      isCollection: isCollection?? this.isCollection,
-      pic: pic?? this.pic,
-    );
-  }
-}

+ 0 - 0
packages/cpt_property/lib/modules/news/page/test.dart