You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

74 lines
2.8 KiB

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'article.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
Article _$ArticleFromJson(Map<String, dynamic> json) => Article()
..id = json['id'] as String?
..createTime = json['createTime'] as String?
..createUser = json['createUser'] as String?
..updateTime = json['updateTime'] as String?
..updateUser = json['updateUser'] as String?
..storeId = json['storeId'] as String?
..categoryId = json['categoryId'] as String?
..mainTitle = json['mainTitle'] as String?
..viceTitle = json['viceTitle']
..content = json['content'] as String?
..coverImg = json['coverImg'] as String?
..author = json['author']
..type = (json['type'] as num?)?.toInt()
..likes = (json['likes'] as num?)?.toInt()
..viewers = (json['viewers'] as num?)?.toInt()
..startTime = json['startTime'] as String?
..endTime = json['endTime'] as String?
..isHot = json['isHot'] as bool?
..state = (json['state'] as num?)?.toInt()
..location = json['location'] as String?
..longitude = json['longitude'] as String?
..latitude = json['latitude'] as String?
..remark = json['remark'] as String?
..isDelete = (json['isDelete'] as num?)?.toInt()
..tenantCode = json['tenantCode'] as String?
..storeName = json['storeName']
..liked = json['liked'] as bool?
..followed = json['followed'] as bool?
..comments = json['comments']
..authorName = json['authorName'] as String?
..authorHeadImg = json['authorHeadImg'] as String?;
Map<String, dynamic> _$ArticleToJson(Article instance) => <String, dynamic>{
'id': instance.id,
'createTime': instance.createTime,
'createUser': instance.createUser,
'updateTime': instance.updateTime,
'updateUser': instance.updateUser,
'storeId': instance.storeId,
'categoryId': instance.categoryId,
'mainTitle': instance.mainTitle,
'viceTitle': instance.viceTitle,
'content': instance.content,
'coverImg': instance.coverImg,
'author': instance.author,
'type': instance.type,
'likes': instance.likes,
'viewers': instance.viewers,
'startTime': instance.startTime,
'endTime': instance.endTime,
'isHot': instance.isHot,
'state': instance.state,
'location': instance.location,
'longitude': instance.longitude,
'latitude': instance.latitude,
'remark': instance.remark,
'isDelete': instance.isDelete,
'tenantCode': instance.tenantCode,
'storeName': instance.storeName,
'liked': instance.liked,
'followed': instance.followed,
'comments': instance.comments,
'authorName': instance.authorName,
'authorHeadImg': instance.authorHeadImg,
};