Contact class

Represents a contact in the Microsoft Graph API.

Constructors

Contact({String? assistantName, DateTime? birthday, Address? businessAddress, String? businessHomePage, List<String>? businessPhones, List<String>? categories, String? changeKey, List<String>? children, String? companyName, DateTime? createdDateTime, String? department, String? displayName, List<EmailAddress>? emailAddresses, String? fileAs, String? generation, String? givenName, Address? homeAddress, List<String>? homePhones, String? id, List<String>? imAddresses, String? initials, String? jobTitle, DateTime? lastModifiedDateTime, String? manager, String? middleName, String? mobilePhone, String? nickName, String? officeLocation, Address? otherAddress, String? parentFolderId, String? personalNotes, String? profession, String? spouseName, String? surname, String? title, String? yomiCompanyName, String? yomiGivenName, String? yomiSurname})
Contact.fromJson(Map<String, dynamic> json)
Creates a new instance of Contact from a JSON object.
factory

Properties

assistantName → String?
The name of the contact's assistant.
final
birthday → DateTime?
The contact's birthday. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
final
businessAddress → Address?
The contact's business address.
final
businessHomePage → String?
The business home page of the contact.
final
businessPhones → List<String>?
collection: The contact's business phone numbers.
final
categories → List<String>?
collection: The categories associated with the contact.
final
changeKey → String?
Identifies the version of the contact. Every time the contact is changed, ChangeKey changes as well. This allows Exchange to apply changes to the correct version of the object.
final
children → List<String>?
collection: The names of the contact's children.
final
companyName → String?
The name of the contact's company.
final
createdDateTime → DateTime?
The time the contact was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
final
department → String?
The contact's department.
final
displayName → String?
The contact's display name. You can specify the display name in a create or update operation. Note that later updates to other properties may cause an automatically generated value to overwrite the displayName value you have specified. To preserve a pre-existing value, always include it as displayName in an update operation.
final
emailAddresses → List<EmailAddress>?
collection: The contact's email addresses.
final
fileAs → String?
The name the contact is filed under.
final
generation → String?
The contact's generation.
final
givenName → String?
The contact's given name.
final
hashCode → int
The hash code for this object.
no setterinherited
homeAddress → Address?
The contact's home address.
final
homePhones → List<String>?
collection: The contact's home phone numbers.
final
id → String?
The contact's unique identifier. By default, this value changes when the item is moved from one container (such as a folder or calendar) to another. To change this behavior, use the Prefer: IdType="ImmutableId" header. See Get immutable identifiers for Outlook resources for more information. Read-only.
final
imAddresses → List<String>?
collection: The contact's instant messaging (IM) addresses.
final
initials → String?
The contact's initials.
final
jobTitle → String?
The contact’s job title.
final
lastModifiedDateTime → DateTime?
The time the contact was modified. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
final
manager → String?
The name of the contact's manager.
final
middleName → String?
The contact's middle name.
final
mobilePhone → String?
The contact's mobile phone number.
final
nickName → String?
The contact's nickname.
final
officeLocation → String?
The location of the contact's office.
final
otherAddress → Address?
Other addresses for the contact.
final
parentFolderId → String?
The ID of the contact's parent folder.
final
personalNotes → String?
The user's notes about the contact.
final
profession → String?
The contact's profession.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
spouseName → String?
The name of the contact's spouse/partner.
final
surname → String?
The contact's surname.
final
title → String?
The contact's title.
final
yomiCompanyName → String?
The phonetic Japanese company name of the contact.
final
yomiGivenName → String?
The phonetic Japanese given name (first name) of the contact.
final
yomiSurname → String?
The phonetic Japanese surname (last name) of the contact.
final

Methods

copyWith({String? assistantName, DateTime? birthday, Address? businessAddress, String? businessHomePage, List<String>? businessPhones, List<String>? categories, String? changeKey, List<String>? children, String? companyName, DateTime? createdDateTime, String? department, String? displayName, List<EmailAddress>? emailAddresses, String? fileAs, String? generation, String? givenName, Address? homeAddress, List<String>? homePhones, String? id, List<String>? imAddresses, String? initials, String? jobTitle, DateTime? lastModifiedDateTime, String? manager, String? middleName, String? mobilePhone, String? nickName, String? officeLocation, Address? otherAddress, String? parentFolderId, String? personalNotes, String? profession, String? spouseName, String? surname, String? title, String? yomiCompanyName, String? yomiGivenName, String? yomiSurname}) → Contact
Doesn't support setting null values for the properties.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

toListStr(List list) → List<String>