PcoServicesBlockoutScheduleConflict constructor
PcoServicesBlockoutScheduleConflict({
- String? id,
- String? dates,
- String? organizationName,
- String? personAvatar,
- String? personName,
- String? positionDisplayTimes,
- String? serviceTypeName,
- String? shortDates,
- String? status,
- String? teamName,
- String? teamPositionName,
- DateTime? sortDate,
- bool? isCanAcceptPartial,
- Map<
String, List< ? withRelationships,PcoResource> > - List<
PcoResource> ? withIncluded,
Create a new PcoServicesBlockoutScheduleConflict 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 PcoServicesBlockoutScheduleConflict(
{String? id,
String? dates,
String? organizationName,
String? personAvatar,
String? personName,
String? positionDisplayTimes,
String? serviceTypeName,
String? shortDates,
String? status,
String? teamName,
String? teamPositionName,
DateTime? sortDate,
bool? isCanAcceptPartial,
Map<String, List<PcoResource>>? withRelationships,
List<PcoResource>? withIncluded}) {
var obj = PcoServicesBlockoutScheduleConflict.empty();
obj._id = id;
if (dates != null) obj._attributes['dates'] = dates;
if (organizationName != null)
obj._attributes['organization_name'] = organizationName;
if (personAvatar != null) obj._attributes['person_avatar'] = personAvatar;
if (personName != null) obj._attributes['person_name'] = personName;
if (positionDisplayTimes != null)
obj._attributes['position_display_times'] = positionDisplayTimes;
if (serviceTypeName != null)
obj._attributes['service_type_name'] = serviceTypeName;
if (shortDates != null) obj._attributes['short_dates'] = shortDates;
if (status != null) obj._attributes['status'] = status;
if (teamName != null) obj._attributes['team_name'] = teamName;
if (teamPositionName != null)
obj._attributes['team_position_name'] = teamPositionName;
if (sortDate != null)
obj._attributes['sort_date'] = sortDate.toIso8601String();
if (isCanAcceptPartial != null)
obj._attributes['can_accept_partial'] = isCanAcceptPartial;
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;
}