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}]}
/// quantity : 0
/// quantityFormat : ""

class UserCountGuardRes {
  UserCountGuardRes({
      SocialChatUserProfile? userProfile,
      String? quantity,
      String? quantityFormat,}){
    _userProfile = userProfile;
    _quantity = quantity;
    _quantityFormat = quantityFormat;
}

  UserCountGuardRes.fromJson(dynamic json) {
    _userProfile = json['userProfile'] != null ? SocialChatUserProfile.fromJson(json['userProfile']) : null;
    _quantity = json['quantity'];
    _quantityFormat = json['quantityFormat'];
  }
  SocialChatUserProfile? _userProfile;
  String? _quantity;
  String? _quantityFormat;
UserCountGuardRes copyWith({  SocialChatUserProfile? userProfile,
  String? quantity,
  String? quantityFormat,
}) => UserCountGuardRes(  userProfile: userProfile ?? _userProfile,
  quantity: quantity ?? _quantity,
  quantityFormat: quantityFormat ?? _quantityFormat,
);
  SocialChatUserProfile? get userProfile => _userProfile;
  String? get quantity => _quantity;
  String? get quantityFormat => _quantityFormat;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    if (_userProfile != null) {
      map['userProfile'] = _userProfile?.toJson();
    }
    map['quantity'] = _quantity;
    map['quantityFormat'] = _quantityFormat;
    return map;
  }

}

