// id : 0
// roomAccount : ""
// userId : 0
// roomCover : ""
// roomName : ""
// roomDesc : ""
// event : ""
// sysOrigin : ""
// countryCode : ""
// countryName : ""
// nationalFlag : ""
// langCode : ""
// del : false
// createTime : 0
// updateTime : 0
// activeTime : 0

class SCEditRoomInfoRes {
  SCEditRoomInfoRes({
    String? id,
    String? roomAccount,
    String? userId,
    String? roomCover,
    String? roomName,
    String? roomDesc,
    String? event,
    String? sysOrigin,
    String? countryCode,
    String? countryName,
    String? nationalFlag,
    String? langCode,
    bool? del,
    num? createTime,
    num? updateTime,
    num? activeTime,
  }) {
    _id = id;
    _roomAccount = roomAccount;
    _userId = userId;
    _roomCover = roomCover;
    _roomName = roomName;
    _roomDesc = roomDesc;
    _event = event;
    _sysOrigin = sysOrigin;
    _countryCode = countryCode;
    _countryName = countryName;
    _nationalFlag = nationalFlag;
    _langCode = langCode;
    _del = del;
    _createTime = createTime;
    _updateTime = updateTime;
    _activeTime = activeTime;
  }

  SCEditRoomInfoRes.fromJson(dynamic json) {
    _id = json['id'];
    _roomAccount = json['roomAccount'];
    _userId = json['userId'];
    _roomCover = json['roomCover'] ?? json['cover'];
    _roomName = json['roomName'];
    _roomDesc = json['roomDesc'];
    _event = json['event'];
    _sysOrigin = json['sysOrigin'];
    _countryCode = json['countryCode'];
    _countryName = json['countryName'];
    _nationalFlag = json['nationalFlag'];
    _langCode = json['langCode'];
    _del = json['del'];
    _createTime = json['createTime'];
    _updateTime = json['updateTime'];
    _activeTime = json['activeTime'];
  }
  String? _id;
  String? _roomAccount;
  String? _userId;
  String? _roomCover;
  String? _roomName;
  String? _roomDesc;
  String? _event;
  String? _sysOrigin;
  String? _countryCode;
  String? _countryName;
  String? _nationalFlag;
  String? _langCode;
  bool? _del;
  num? _createTime;
  num? _updateTime;
  num? _activeTime;
  SCEditRoomInfoRes copyWith({
    String? id,
    String? roomAccount,
    String? userId,
    String? roomCover,
    String? roomName,
    String? roomDesc,
    String? event,
    String? sysOrigin,
    String? countryCode,
    String? countryName,
    String? nationalFlag,
    String? langCode,
    bool? del,
    num? createTime,
    num? updateTime,
    num? activeTime,
  }) => SCEditRoomInfoRes(
    id: id ?? _id,
    roomAccount: roomAccount ?? _roomAccount,
    userId: userId ?? _userId,
    roomCover: roomCover ?? _roomCover,
    roomName: roomName ?? _roomName,
    roomDesc: roomDesc ?? _roomDesc,
    event: event ?? _event,
    sysOrigin: sysOrigin ?? _sysOrigin,
    countryCode: countryCode ?? _countryCode,
    countryName: countryName ?? _countryName,
    nationalFlag: nationalFlag ?? _nationalFlag,
    langCode: langCode ?? _langCode,
    del: del ?? _del,
    createTime: createTime ?? _createTime,
    updateTime: updateTime ?? _updateTime,
    activeTime: activeTime ?? _activeTime,
  );
  String? get id => _id;
  String? get roomAccount => _roomAccount;
  String? get userId => _userId;
  String? get roomCover => _roomCover;
  String? get roomName => _roomName;
  String? get roomDesc => _roomDesc;
  String? get event => _event;
  String? get sysOrigin => _sysOrigin;
  String? get countryCode => _countryCode;
  String? get countryName => _countryName;
  String? get nationalFlag => _nationalFlag;
  String? get langCode => _langCode;
  bool? get del => _del;
  num? get createTime => _createTime;
  num? get updateTime => _updateTime;
  num? get activeTime => _activeTime;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = _id;
    map['roomAccount'] = _roomAccount;
    map['userId'] = _userId;
    map['roomCover'] = _roomCover;
    map['roomName'] = _roomName;
    map['roomDesc'] = _roomDesc;
    map['event'] = _event;
    map['sysOrigin'] = _sysOrigin;
    map['countryCode'] = _countryCode;
    map['countryName'] = _countryName;
    map['nationalFlag'] = _nationalFlag;
    map['langCode'] = _langCode;
    map['del'] = _del;
    map['createTime'] = _createTime;
    map['updateTime'] = _updateTime;
    map['activeTime'] = _activeTime;
    return map;
  }
}
