FContact.fromMap constructor

FContact.fromMap(Map map)

Implementation

FContact.fromMap(Map map) {
  identifier = map["identifier"];
  displayName = map["displayName"];
  contactType = map["contactType"];
  namePrefix = map["namePrefix"] ?? null;
  givenName = map["givenName"] ?? null;
  middleName = map["middleName"] ?? null;
  familyName = map["familyName"] ?? null;
  previousFamilyName = map["previousFamilyName"] ?? null;
  nameSuffix = map["nameSuffix"] ?? null;
  nickname = map["nickname"] ?? null;
  phoneticGivenName = map["phoneticGivenName"] ?? null;
  phoneticMiddleName = map["phoneticMiddleName"] ?? null;
  phoneticFamilyName = map["phoneticFamilyName"] ?? null;
  jobTitle = map["jobTitle"] ?? null;
  departmentName = map["departmentName"] ?? null;
  organizationName = map["organizationName"] ?? null;
  phoneticOrganizationName = map["phoneticOrganizationName"] ?? null;
  birthdayDay = map["birthdayDay"] ?? null;
  birthdayMonth = map["birthdayMonth"] ?? null;
  birthdayYear = map["birthdayYear"] ?? null;
  note = map["note"] ?? null;
  image = map["imageData"] ?? null;
  thumbnail = map["thumbnailData"] ?? null;
  dates = (map["dates"] as Iterable)
      ?.map((item) => FContactDateLabeled.fromMap(item))
      ?.toList();
  emails = (map["emails"] as Iterable)
      ?.map((item) => FContactValueLabeled.fromMap(item))
      ?.toList();
  urls = (map["urls"] as Iterable)
      ?.map((item) => FContactValueLabeled.fromMap(item))
      ?.toList();
  postalAddresses = (map["postalAddresses"] as Iterable)
      ?.map((item) => FContactPostalAddressLabeled.fromMap(item))
      ?.toList();
  phoneNumbers = (map["phoneNumbers"] as Iterable)
      ?.map((item) => FContactValueLabeled.fromMap(item))
      ?.toList();
  contactRelations = (map["contactRelations"] as Iterable)
      ?.map((item) => FContactValueLabeled.fromMap(item))
      ?.toList();
  socialProfiles = (map["socialProfiles"] as Iterable)
      ?.map((item) => FContactSocialProfileLabeled.fromMap(item))
      ?.toList();
  instantMessageAddresses = (map["instantMessageAddresses"] as Iterable)
      ?.map((item) => FContactInstantMessageAddressLabeled.fromMap(item))
      ?.toList();
}