class Activity { Activity(); String id; String createTime; dynamic createUser; String updateTime; dynamic updateUser; String storeId; String mainTitle; String viceTitle; String content; String coverImg; String startTime; String endTime; int state; int isDelete; String storeName; factory Activity.fromJson(Map json) => Activity() ..id = json['id'] ..createTime = json['createTime'] ..createUser = json['createUser'] ..updateTime = json['updateTime'] ..updateUser = json['updateUser'] ..storeId = json['storeId'] ..mainTitle = json['mainTitle'] ..viceTitle = json['viceTitle'] ..content = json['content'] ..coverImg = json['coverImg'] ..startTime = json['startTime'] ..endTime = json['endTime'] ..state = json['state'] ..isDelete = json['isDelete'] ..storeName = json['storeName']; Map toJson() => { 'id': this.id, 'createTime': this.createTime, 'createUser': this.createUser, 'updateTime': this.updateTime, 'updateUser': this.updateUser, 'storeId': this.storeId, 'mainTitle': this.mainTitle, 'viceTitle': this.viceTitle, 'content': this.content, 'coverImg': this.coverImg, 'startTime': this.startTime, 'endTime': this.endTime, 'state': this.state, 'isDelete': this.isDelete, 'storeName': this.storeName, }; // Activity _$ActivityFromJson(Map json) { // return Activity() // ..id = json['id'] as String // ..createTime = json['createTime'] as String // ..createUser = json['createUser'] // ..updateTime = json['updateTime'] as String // ..updateUser = json['updateUser'] // ..storeId = json['storeId'] as String // ..mainTitle = json['mainTitle'] as String // ..viceTitle = json['viceTitle'] as String // ..content = json['content'] as String // ..coverImg = json['coverImg'] as String // ..startTime = json['startTime'] as String // ..endTime = json['endTime'] as String // ..state = json['state'] as int // ..isDelete = json['isDelete'] as int // ..storeName = json['storeName'] as String; // } // Map _$ActivityToJson(Activity instance) => { // 'id': instance.id, // 'createTime': instance.createTime, // 'createUser': instance.createUser, // 'updateTime': instance.updateTime, // 'updateUser': instance.updateUser, // 'storeId': instance.storeId, // 'mainTitle': instance.mainTitle, // 'viceTitle': instance.viceTitle, // 'content': instance.content, // 'coverImg': instance.coverImg, // 'startTime': instance.startTime, // 'endTime': instance.endTime, // 'state': instance.state, // 'isDelete': instance.isDelete, // 'storeName': instance.storeName, // }; }