import 'package:json_annotation/json_annotation.dart';

part 'meeting_room_item.g.dart';

@JsonSerializable()
class MeetingRoomItem extends Object{

  @JsonKey(name: 'totalPage')
  int totalPage;

  @JsonKey(name: 'total')
  int total;

  @JsonKey(name: 'items')
  List<Items> items;

  MeetingRoomItem(this.totalPage, this.total,this.items,);

  factory MeetingRoomItem.fromJson(Map<String, dynamic> srcJson) => _$MeetingRoomItemFromJson(srcJson);

}

@JsonSerializable()
class Items extends Object{

  @JsonKey(name: 'id')
  String id;

  @JsonKey(name: 'roomName')
  String roomName;

  @JsonKey(name: 'roomNum')
  String roomNum;

  @JsonKey(name: 'onlineUserCount')
  int onlineUserCount;

  @JsonKey(name: 'year')
  int year;

  @JsonKey(name: 'subject')
  int subject;

  Items(this.id,this.roomName,this.roomNum,this.onlineUserCount,this.year,this.subject,);

  factory Items.fromJson(Map<String, dynamic> srcJson) => _$ItemsFromJson(srcJson);

}


