PcoCheckInsPerson constructor
PcoCheckInsPerson({
- String? id,
- List? addresses,
- List? emailAddresses,
- List? phoneNumbers,
- String? avatarUrl,
- String? namePrefix,
- String? firstName,
- String? middleName,
- String? lastName,
- String? nameSuffix,
- String? birthdate,
- int? grade,
- String? gender,
- String? medicalNotes,
- bool? isChild,
- String? permission,
- bool? isHeadcounter,
- DateTime? lastCheckedInAt,
- int? checkInCount,
- DateTime? createdAt,
- DateTime? updatedAt,
- bool? isPassedBackgroundCheck,
- String? demographicAvatarUrl,
- String? name,
- String? topPermission,
- String? searchName,
- Map<
String, List< ? withRelationships,PcoResource> > - List<
PcoResource> ? withIncluded,
Create a new PcoCheckInsPerson 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 PcoCheckInsPerson(
{String? id,
List? addresses,
List? emailAddresses,
List? phoneNumbers,
String? avatarUrl,
String? namePrefix,
String? firstName,
String? middleName,
String? lastName,
String? nameSuffix,
String? birthdate,
int? grade,
String? gender,
String? medicalNotes,
bool? isChild,
String? permission,
bool? isHeadcounter,
DateTime? lastCheckedInAt,
int? checkInCount,
DateTime? createdAt,
DateTime? updatedAt,
bool? isPassedBackgroundCheck,
String? demographicAvatarUrl,
String? name,
String? topPermission,
String? searchName,
Map<String, List<PcoResource>>? withRelationships,
List<PcoResource>? withIncluded}) {
var obj = PcoCheckInsPerson.empty();
obj._id = id;
if (addresses != null) obj._attributes['addresses'] = addresses;
if (emailAddresses != null)
obj._attributes['email_addresses'] = emailAddresses;
if (phoneNumbers != null) obj._attributes['phone_numbers'] = phoneNumbers;
if (avatarUrl != null) obj._attributes['avatar_url'] = avatarUrl;
if (namePrefix != null) obj._attributes['name_prefix'] = namePrefix;
if (firstName != null) obj._attributes['first_name'] = firstName;
if (middleName != null) obj._attributes['middle_name'] = middleName;
if (lastName != null) obj._attributes['last_name'] = lastName;
if (nameSuffix != null) obj._attributes['name_suffix'] = nameSuffix;
if (birthdate != null) obj._attributes['birthdate'] = birthdate;
if (grade != null) obj._attributes['grade'] = grade;
if (gender != null) obj._attributes['gender'] = gender;
if (medicalNotes != null) obj._attributes['medical_notes'] = medicalNotes;
if (isChild != null) obj._attributes['child'] = isChild;
if (permission != null) obj._attributes['permission'] = permission;
if (isHeadcounter != null) obj._attributes['headcounter'] = isHeadcounter;
if (lastCheckedInAt != null)
obj._attributes['last_checked_in_at'] = lastCheckedInAt.toIso8601String();
if (checkInCount != null) obj._attributes['check_in_count'] = checkInCount;
if (createdAt != null)
obj._attributes['created_at'] = createdAt.toIso8601String();
if (updatedAt != null)
obj._attributes['updated_at'] = updatedAt.toIso8601String();
if (isPassedBackgroundCheck != null)
obj._attributes['passed_background_check'] = isPassedBackgroundCheck;
if (demographicAvatarUrl != null)
obj._attributes['demographic_avatar_url'] = demographicAvatarUrl;
if (name != null) obj._attributes['name'] = name;
if (topPermission != null)
obj._attributes['top_permission'] = topPermission;
if (searchName != null) obj._attributes['search_name'] = searchName;
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;
}