toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (displayName != null) 'displayName': displayName!,
      if (displayNameLastFirst != null)
        'displayNameLastFirst': displayNameLastFirst!,
      if (familyName != null) 'familyName': familyName!,
      if (givenName != null) 'givenName': givenName!,
      if (honorificPrefix != null) 'honorificPrefix': honorificPrefix!,
      if (honorificSuffix != null) 'honorificSuffix': honorificSuffix!,
      if (metadata != null) 'metadata': metadata!,
      if (middleName != null) 'middleName': middleName!,
      if (phoneticFamilyName != null)
        'phoneticFamilyName': phoneticFamilyName!,
      if (phoneticFullName != null) 'phoneticFullName': phoneticFullName!,
      if (phoneticGivenName != null) 'phoneticGivenName': phoneticGivenName!,
      if (phoneticHonorificPrefix != null)
        'phoneticHonorificPrefix': phoneticHonorificPrefix!,
      if (phoneticHonorificSuffix != null)
        'phoneticHonorificSuffix': phoneticHonorificSuffix!,
      if (phoneticMiddleName != null)
        'phoneticMiddleName': phoneticMiddleName!,
      if (unstructuredName != null) 'unstructuredName': unstructuredName!,
    };