// GENERATED CODE - DO NOT MODIFY BY HAND part of 'comunity_comment.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** ComunityComment _$ComunityCommentFromJson(Map 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) ..memberInfo = json['memberInfo'] == null ? null : ComunityMemberInfo.fromJson( json['memberInfo'] as Map) ..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 _$ComunityCommentToJson(ComunityComment instance) => { '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 json) => SubjectInfo() ..type = json['type'] as String? ..images = (json['images'] as List?)?.map((e) => e as String).toList() ..video = json['video'] as String?; Map _$SubjectInfoToJson(SubjectInfo instance) => { 'type': instance.type, 'images': instance.images, 'video': instance.video, }; ComunityMemberInfo _$ComunityMemberInfoFromJson(Map json) => ComunityMemberInfo() ..mid = json['mid'] ..nickname = json['nickname'] ..avatar = json['avatar'] as String?; Map _$ComunityMemberInfoToJson(ComunityMemberInfo instance) => { 'mid': instance.mid, 'nickname': instance.nickname, 'avatar': instance.avatar, };