PcoServicesSchedule constructor
PcoServicesSchedule({
- String? id,
- DateTime? sortDate,
- String? dates,
- String? declineReason,
- String? organizationName,
- String? organizationTimeZone,
- String? organizationTwentyFourHourTime,
- String? personName,
- String? positionDisplayTimes,
- String? respondsToName,
- String? serviceTypeName,
- String? shortDates,
- String? status,
- String? teamName,
- String? teamPositionName,
- bool? isCanAcceptPartial,
- bool? isCanAcceptPartialOneTime,
- bool? isPlanVisible,
- bool? isPlanVisibleToMe,
- Map<
String, List< ? withRelationships,PcoResource> > - List<
PcoResource> ? withIncluded,
Create a new PcoServicesSchedule 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 PcoServicesSchedule(
{String? id,
DateTime? sortDate,
String? dates,
String? declineReason,
String? organizationName,
String? organizationTimeZone,
String? organizationTwentyFourHourTime,
String? personName,
String? positionDisplayTimes,
String? respondsToName,
String? serviceTypeName,
String? shortDates,
String? status,
String? teamName,
String? teamPositionName,
bool? isCanAcceptPartial,
bool? isCanAcceptPartialOneTime,
bool? isPlanVisible,
bool? isPlanVisibleToMe,
Map<String, List<PcoResource>>? withRelationships,
List<PcoResource>? withIncluded}) {
var obj = PcoServicesSchedule.empty();
obj._id = id;
if (sortDate != null)
obj._attributes['sort_date'] = sortDate.toIso8601String();
if (dates != null) obj._attributes['dates'] = dates;
if (declineReason != null)
obj._attributes['decline_reason'] = declineReason;
if (organizationName != null)
obj._attributes['organization_name'] = organizationName;
if (organizationTimeZone != null)
obj._attributes['organization_time_zone'] = organizationTimeZone;
if (organizationTwentyFourHourTime != null)
obj._attributes['organization_twenty_four_hour_time'] =
organizationTwentyFourHourTime;
if (personName != null) obj._attributes['person_name'] = personName;
if (positionDisplayTimes != null)
obj._attributes['position_display_times'] = positionDisplayTimes;
if (respondsToName != null)
obj._attributes['responds_to_name'] = respondsToName;
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 (isCanAcceptPartial != null)
obj._attributes['can_accept_partial'] = isCanAcceptPartial;
if (isCanAcceptPartialOneTime != null)
obj._attributes['can_accept_partial_one_time'] =
isCanAcceptPartialOneTime;
if (isPlanVisible != null) obj._attributes['plan_visible'] = isPlanVisible;
if (isPlanVisibleToMe != null)
obj._attributes['plan_visible_to_me'] = isPlanVisibleToMe;
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;
}