PcoServicesLive constructor
PcoServicesLive({})
Create a new PcoServicesLive object. This object cannot be created with the API
NOTES:
- Creating an instance of a class this way does not save it on the server.
- This object cannot be saved directly to the server.
- Only set the
id
field if you know what you are doing. Save operations will overwrite data when theid
is set. - Dummy data can be supplied for a required parameter, but if so,
.save()
should not be called on the object - FIELDS USED WHEN CREATING: none
- FIELDS USED WHEN UPDATING: none
Implementation
factory PcoServicesLive(
{String? id,
String? seriesTitle,
String? title,
String? dates,
String? liveChannel,
String? chatRoomChannel,
bool? isCanControl,
bool? isCanTakeControl,
bool? isCanChat,
bool? isCanControlVideoFeed,
Map<String, List<PcoResource>>? withRelationships,
List<PcoResource>? withIncluded}) {
var obj = PcoServicesLive.empty();
obj._id = id;
if (seriesTitle != null) obj._attributes['series_title'] = seriesTitle;
if (title != null) obj._attributes['title'] = title;
if (dates != null) obj._attributes['dates'] = dates;
if (liveChannel != null) obj._attributes['live_channel'] = liveChannel;
if (chatRoomChannel != null)
obj._attributes['chat_room_channel'] = chatRoomChannel;
if (isCanControl != null) obj._attributes['can_control'] = isCanControl;
if (isCanTakeControl != null)
obj._attributes['can_take_control'] = isCanTakeControl;
if (isCanChat != null) obj._attributes['can_chat'] = isCanChat;
if (isCanControlVideoFeed != null)
obj._attributes['can_control_video_feed'] = isCanControlVideoFeed;
if (withRelationships != null) {
for (var r in withRelationships.entries) {
obj._relationships[r.key] = r.value;
}
obj._hasManualRelationships = true;
}
if (withIncluded != null) {
obj._included.addAll(withIncluded);
obj._hasManualIncluded = true;
}
return obj;
}