// GENERATED CODE - DO NOT MODIFY BY HAND part of 'activity.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** Activity _$ActivityFromJson(Map json) => 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? ..categoryId = json['categoryId'] as String? ..state = (json['state'] as num?)?.toInt() ..isDelete = (json['isDelete'] as num?)?.toInt() ..likes = (json['likes'] as num?)?.toInt() ..liked = json['liked'] as bool? ..viewers = (json['viewers'] as num?)?.toInt() ..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, 'categoryId': instance.categoryId, 'state': instance.state, 'isDelete': instance.isDelete, 'likes': instance.likes, 'liked': instance.liked, 'viewers': instance.viewers, 'storeName': instance.storeName, };