import 'package:yumi/shared/business_logic/models/res/login_res.dart';

/// blacklistUserProfile : {"account":"","accountStatus":"","age":0,"bornDay":0,"bornMonth":0,"bornYear":0,"countryCode":"","countryId":0,"countryName":"","createTime":0,"del":false,"freezingTime":0,"id":0,"inRoomId":"","isUpdateCountry":"","originSys":"","ownSpecialId":{"account":"","expiredTime":0},"regionCode":"","roomIcon":"","sameRegion":false,"sysOriginChild":"","useProps":[{"expireTime":0,"propsResources":{"amount":0.0,"code":"","cover":"","expand":"","id":0,"name":"","sourceUrl":"","type":""},"userId":0}],"userAvatar":"","userNickname":"","userSex":0,"wearBadge":[{"animationUrl":"","badgeKey":"","badgeLevel":0,"badgeName":"","expireTime":0,"id":0,"milestone":0,"notSelectUrl":"","selectUrl":"","type":"","userId":0}]}
/// createTime : 0
/// expiredTime : 0
/// id : 0
/// optUserProfile : {"account":"","accountStatus":"","age":0,"bornDay":0,"bornMonth":0,"bornYear":0,"countryCode":"","countryId":0,"countryName":"","createTime":0,"del":false,"freezingTime":0,"id":0,"inRoomId":"","isUpdateCountry":"","originSys":"","ownSpecialId":{"account":"","expiredTime":0},"regionCode":"","roomIcon":"","sameRegion":false,"sysOriginChild":"","useProps":[{"expireTime":0,"propsResources":{"amount":0.0,"code":"","cover":"","expand":"","id":0,"name":"","sourceUrl":"","type":""},"userId":0}],"userAvatar":"","userNickname":"","userSex":0,"wearBadge":[{"animationUrl":"","badgeKey":"","badgeLevel":0,"badgeName":"","expireTime":0,"id":0,"milestone":0,"notSelectUrl":"","selectUrl":"","type":"","userId":0}]}
/// roomId : 0

class RoomBlackListRes {
  RoomBlackListRes({
      SocialChatUserProfile? blacklistUserProfile,
      num? createTime,
      num? expiredTime,
      String? id,
      SocialChatUserProfile? optUserProfile,
      String? roomId,}){
    _blacklistUserProfile = blacklistUserProfile;
    _createTime = createTime;
    _expiredTime = expiredTime;
    _id = id;
    _optUserProfile = optUserProfile;
    _roomId = roomId;
}

  RoomBlackListRes.fromJson(dynamic json) {
    _blacklistUserProfile = json['blacklistUserProfile'] != null ? SocialChatUserProfile.fromJson(json['blacklistUserProfile']) : null;
    _createTime = json['createTime'];
    _expiredTime = json['expiredTime'];
    _id = json['id'];
    _optUserProfile = json['optUserProfile'] != null ? SocialChatUserProfile.fromJson(json['optUserProfile']) : null;
    _roomId = json['roomId'];
  }
  SocialChatUserProfile? _blacklistUserProfile;
  num? _createTime;
  num? _expiredTime;
  String? _id;
  SocialChatUserProfile? _optUserProfile;
  String? _roomId;
RoomBlackListRes copyWith({  SocialChatUserProfile? blacklistUserProfile,
  num? createTime,
  num? expiredTime,
  String? id,
  SocialChatUserProfile? optUserProfile,
  String? roomId,
}) => RoomBlackListRes(  blacklistUserProfile: blacklistUserProfile ?? _blacklistUserProfile,
  createTime: createTime ?? _createTime,
  expiredTime: expiredTime ?? _expiredTime,
  id: id ?? _id,
  optUserProfile: optUserProfile ?? _optUserProfile,
  roomId: roomId ?? _roomId,
);
  SocialChatUserProfile? get blacklistUserProfile => _blacklistUserProfile;
  num? get createTime => _createTime;
  num? get expiredTime => _expiredTime;
  String? get id => _id;
  SocialChatUserProfile? get optUserProfile => _optUserProfile;
  String? get roomId => _roomId;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['blacklistUserProfile'] = _blacklistUserProfile;
    map['createTime'] = _createTime;
    map['expiredTime'] = _expiredTime;
    map['id'] = _id;
    if (_optUserProfile != null) {
      map['optUserProfile'] = _optUserProfile?.toJson();
    }
    map['roomId'] = _roomId;
    return map;
  }
}
