aslan-flutter/lib/chatvibe_domain/models/res/user_count_guard_res.dart
2026-07-01 18:25:58 +08:00

48 lines
2.0 KiB
Dart

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}]}
/// quantity : 0
/// quantityFormat : ""
class UserCountGuardRes {
UserCountGuardRes({
ChatVibeUserProfile? userProfile,
String? quantity,
String? quantityFormat,}){
_userProfile = userProfile;
_quantity = quantity;
_quantityFormat = quantityFormat;
}
UserCountGuardRes.fromJson(dynamic json) {
_userProfile = json['userProfile'] != null ? ChatVibeUserProfile.fromJson(json['userProfile']) : null;
_quantity = json['quantity'];
_quantityFormat = json['quantityFormat'];
}
ChatVibeUserProfile? _userProfile;
String? _quantity;
String? _quantityFormat;
UserCountGuardRes copyWith({ ChatVibeUserProfile? userProfile,
String? quantity,
String? quantityFormat,
}) => UserCountGuardRes( userProfile: userProfile ?? _userProfile,
quantity: quantity ?? _quantity,
quantityFormat: quantityFormat ?? _quantityFormat,
);
ChatVibeUserProfile? 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;
}
}