import 'package:json_annotation/json_annotation.dart'; import 'package:marianum_mobile/api/apiResponse.dart'; part 'getRoomsResponse.g.dart'; @JsonSerializable(explicitToJson: true) class GetRoomsResponse extends ApiResponse { Set result; GetRoomsResponse(this.result); factory GetRoomsResponse.fromJson(Map json) => _$GetRoomsResponseFromJson(json); Map toJson() => _$GetRoomsResponseToJson(this); } @JsonSerializable(explicitToJson: true) class GetRoomsResponseObject { int id; String name; String longName; bool active; String building; GetRoomsResponseObject(this.id, this.name, this.longName, this.active, this.building); factory GetRoomsResponseObject.fromJson(Map json) => _$GetRoomsResponseObjectFromJson(json); Map toJson() => _$GetRoomsResponseObjectToJson(this); }