import 'package:yumi/shared/business_logic/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({
      SocialChatUserProfile? userProfile,
      String? totalFormat,
      String? total,}){
    _userProfile = userProfile;
    _totalFormat = totalFormat;
    _total = total;
}

  RoomGiftRankRes.fromJson(dynamic json) {
    _userProfile = json['userProfile'] != null ? SocialChatUserProfile.fromJson(json['userProfile']) : null;
    _totalFormat = json['totalFormat'];
    _total = json['total'];
  }
  SocialChatUserProfile? _userProfile;
  String? _totalFormat;
  String? _total;
RoomGiftRankRes copyWith({  SocialChatUserProfile? userProfile,
  String? totalFormat,
  String? total,
}) => RoomGiftRankRes(  userProfile: userProfile ?? _userProfile,
  totalFormat: totalFormat ?? _totalFormat,
  total: total ?? _total,
);
  SocialChatUserProfile? get userProfile => _userProfile;
  String? get totalFormat => _totalFormat;
  String? get total => _total;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    if (_userProfile != null) {
      map['userProfile'] = _userProfile?.toJson();
    }
    map['totalFormat'] = _totalFormat;
    map['total'] = _total;
    return map;
  }

}
