PcoGroupsGroup constructor
PcoGroupsGroup({
- String? id,
- String? archiveStatus,
- DateTime? archivedAt,
- String? contactEmail,
- DateTime? createdAt,
- String? description,
- bool? isEnrollmentOpen,
- String? enrollmentStrategy,
- String? eventsVisibility,
- String? headerImage,
- String? locationTypePreference,
- int? membershipsCount,
- String? name,
- String? publicChurchCenterWebUrl,
- String? schedule,
- String? virtualLocationUrl,
- String? widgetStatus,
- Map<
String, List< ? withRelationships,PcoResource> > - List<
PcoResource> ? withIncluded,
Create a new PcoGroupsGroup 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 PcoGroupsGroup(
{String? id,
String? archiveStatus,
DateTime? archivedAt,
String? contactEmail,
DateTime? createdAt,
String? description,
bool? isEnrollmentOpen,
String? enrollmentStrategy,
String? eventsVisibility,
String? headerImage,
String? locationTypePreference,
int? membershipsCount,
String? name,
String? publicChurchCenterWebUrl,
String? schedule,
String? virtualLocationUrl,
String? widgetStatus,
Map<String, List<PcoResource>>? withRelationships,
List<PcoResource>? withIncluded}) {
var obj = PcoGroupsGroup.empty();
obj._id = id;
if (archiveStatus != null)
obj._attributes['archive_status'] = archiveStatus;
if (archivedAt != null)
obj._attributes['archived_at'] = archivedAt.toIso8601String();
if (contactEmail != null) obj._attributes['contact_email'] = contactEmail;
if (createdAt != null)
obj._attributes['created_at'] = createdAt.toIso8601String();
if (description != null) obj._attributes['description'] = description;
if (isEnrollmentOpen != null)
obj._attributes['enrollment_open'] = isEnrollmentOpen;
if (enrollmentStrategy != null)
obj._attributes['enrollment_strategy'] = enrollmentStrategy;
if (eventsVisibility != null)
obj._attributes['events_visibility'] = eventsVisibility;
if (headerImage != null) obj._attributes['header_image'] = headerImage;
if (locationTypePreference != null)
obj._attributes['location_type_preference'] = locationTypePreference;
if (membershipsCount != null)
obj._attributes['memberships_count'] = membershipsCount;
if (name != null) obj._attributes['name'] = name;
if (publicChurchCenterWebUrl != null)
obj._attributes['public_church_center_web_url'] =
publicChurchCenterWebUrl;
if (schedule != null) obj._attributes['schedule'] = schedule;
if (virtualLocationUrl != null)
obj._attributes['virtual_location_url'] = virtualLocationUrl;
if (widgetStatus != null) obj._attributes['widget_status'] = widgetStatus;
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;
}