import 'package:aslan/chatvibe_domain/models/res/login_res.dart'; /// userProfile : {"id":0,"account":"","userAvatar":"","userNickname":"","userSex":0,"age":0,"accountStatus":"","freezingTime":0,"countryId":0,"countryName":"","countryCode":"","originSys":"","sysOriginChild":"","del":false,"createTime":0,"bornYear":0,"bornMonth":0,"bornDay":0,"ownSpecialId":{"account":"","expiredTime":0},"useProps":[{"userId":0,"propsResources":{"id":0,"type":"","code":"","name":"","cover":"","sourceUrl":"","expand":"","amount":0.0},"expireTime":0}],"sameRegion":false,"wearBadge":[{"id":0,"userId":0,"badgeLevel":0,"milestone":0,"badgeName":"","type":"","badgeKey":"","selectUrl":"","notSelectUrl":"","animationUrl":"","expireTime":0}]} /// totalFormat : "" /// total : 0 class RoomGiftRankRes { RoomGiftRankRes({ ChatVibeUserProfile? userProfile, String? totalFormat, String? total,}){ _userProfile = userProfile; _totalFormat = totalFormat; _total = total; } RoomGiftRankRes.fromJson(dynamic json) { _userProfile = json['userProfile'] != null ? ChatVibeUserProfile.fromJson(json['userProfile']) : null; _totalFormat = json['totalFormat']; _total = json['total']; } ChatVibeUserProfile? _userProfile; String? _totalFormat; String? _total; RoomGiftRankRes copyWith({ ChatVibeUserProfile? userProfile, String? totalFormat, String? total, }) => RoomGiftRankRes( userProfile: userProfile ?? _userProfile, totalFormat: totalFormat ?? _totalFormat, total: total ?? _total, ); ChatVibeUserProfile? get userProfile => _userProfile; String? get totalFormat => _totalFormat; String? get total => _total; Map toJson() { final map = {}; if (_userProfile != null) { map['userProfile'] = _userProfile?.toJson(); } map['totalFormat'] = _totalFormat; map['total'] = _total; return map; } }