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.
68 lines
2.4 KiB
68 lines
2.4 KiB
1 month ago
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||
|
|
||
|
part of 'comunity_comment.dart';
|
||
|
|
||
|
// **************************************************************************
|
||
|
// JsonSerializableGenerator
|
||
|
// **************************************************************************
|
||
|
|
||
|
ComunityComment _$ComunityCommentFromJson(Map<String, dynamic> json) =>
|
||
|
ComunityComment()
|
||
|
..id = json['id'] as String?
|
||
|
..subject = json['subject'] as String?
|
||
|
..location = json['location'] as String?
|
||
|
..subjectInfo = json['subjectInfo'] == null
|
||
|
? null
|
||
|
: SubjectInfo.fromJson(json['subjectInfo'] as Map<String, dynamic>)
|
||
|
..memberInfo = json['memberInfo'] == null
|
||
|
? null
|
||
|
: ComunityMemberInfo.fromJson(
|
||
|
json['memberInfo'] as Map<String, dynamic>)
|
||
|
..likes = (json['likes'] as num?)?.toInt()
|
||
|
..viewers = (json['viewers'] as num?)?.toInt()
|
||
|
..comments = (json['comments'] as num?)?.toInt()
|
||
|
..selfLike = json['selfLike'] as bool?
|
||
|
..selfFollow = json['selfFollow'] as bool?
|
||
|
..createTime = json['createTime'] as String?;
|
||
|
|
||
|
Map<String, dynamic> _$ComunityCommentToJson(ComunityComment instance) =>
|
||
|
<String, dynamic>{
|
||
|
'id': instance.id,
|
||
|
'subject': instance.subject,
|
||
|
'location': instance.location,
|
||
|
'subjectInfo': instance.subjectInfo?.toJson(),
|
||
|
'memberInfo': instance.memberInfo?.toJson(),
|
||
|
'likes': instance.likes,
|
||
|
'viewers': instance.viewers,
|
||
|
'comments': instance.comments,
|
||
|
'selfLike': instance.selfLike,
|
||
|
'selfFollow': instance.selfFollow,
|
||
|
'createTime': instance.createTime,
|
||
|
};
|
||
|
|
||
|
SubjectInfo _$SubjectInfoFromJson(Map<String, dynamic> json) => SubjectInfo()
|
||
|
..type = json['type'] as String?
|
||
|
..images =
|
||
|
(json['images'] as List<dynamic>?)?.map((e) => e as String).toList()
|
||
|
..video = json['video'] as String?;
|
||
|
|
||
|
Map<String, dynamic> _$SubjectInfoToJson(SubjectInfo instance) =>
|
||
|
<String, dynamic>{
|
||
|
'type': instance.type,
|
||
|
'images': instance.images,
|
||
|
'video': instance.video,
|
||
|
};
|
||
|
|
||
|
ComunityMemberInfo _$ComunityMemberInfoFromJson(Map<String, dynamic> json) =>
|
||
|
ComunityMemberInfo()
|
||
|
..mid = json['mid']
|
||
|
..nickname = json['nickname']
|
||
|
..avatar = json['avatar'] as String?;
|
||
|
|
||
|
Map<String, dynamic> _$ComunityMemberInfoToJson(ComunityMemberInfo instance) =>
|
||
|
<String, dynamic>{
|
||
|
'mid': instance.mid,
|
||
|
'nickname': instance.nickname,
|
||
|
'avatar': instance.avatar,
|
||
|
};
|