toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (addresses != null) 'addresses': addresses!,
      if (agreedToTerms != null) 'agreedToTerms': agreedToTerms!,
      if (aliases != null) 'aliases': aliases!,
      if (archived != null) 'archived': archived!,
      if (changePasswordAtNextLogin != null)
        'changePasswordAtNextLogin': changePasswordAtNextLogin!,
      if (creationTime != null)
        'creationTime': creationTime!.toUtc().toIso8601String(),
      if (customSchemas != null) 'customSchemas': customSchemas!,
      if (customerId != null) 'customerId': customerId!,
      if (deletionTime != null)
        'deletionTime': deletionTime!.toUtc().toIso8601String(),
      if (emails != null) 'emails': emails!,
      if (etag != null) 'etag': etag!,
      if (externalIds != null) 'externalIds': externalIds!,
      if (gender != null) 'gender': gender!,
      if (hashFunction != null) 'hashFunction': hashFunction!,
      if (id != null) 'id': id!,
      if (ims != null) 'ims': ims!,
      if (includeInGlobalAddressList != null)
        'includeInGlobalAddressList': includeInGlobalAddressList!,
      if (ipWhitelisted != null) 'ipWhitelisted': ipWhitelisted!,
      if (isAdmin != null) 'isAdmin': isAdmin!,
      if (isDelegatedAdmin != null) 'isDelegatedAdmin': isDelegatedAdmin!,
      if (isEnforcedIn2Sv != null) 'isEnforcedIn2Sv': isEnforcedIn2Sv!,
      if (isEnrolledIn2Sv != null) 'isEnrolledIn2Sv': isEnrolledIn2Sv!,
      if (isMailboxSetup != null) 'isMailboxSetup': isMailboxSetup!,
      if (keywords != null) 'keywords': keywords!,
      if (kind != null) 'kind': kind!,
      if (languages != null) 'languages': languages!,
      if (lastLoginTime != null)
        'lastLoginTime': lastLoginTime!.toUtc().toIso8601String(),
      if (locations != null) 'locations': locations!,
      if (name != null) 'name': name!,
      if (nonEditableAliases != null)
        'nonEditableAliases': nonEditableAliases!,
      if (notes != null) 'notes': notes!,
      if (orgUnitPath != null) 'orgUnitPath': orgUnitPath!,
      if (organizations != null) 'organizations': organizations!,
      if (password != null) 'password': password!,
      if (phones != null) 'phones': phones!,
      if (posixAccounts != null) 'posixAccounts': posixAccounts!,
      if (primaryEmail != null) 'primaryEmail': primaryEmail!,
      if (recoveryEmail != null) 'recoveryEmail': recoveryEmail!,
      if (recoveryPhone != null) 'recoveryPhone': recoveryPhone!,
      if (relations != null) 'relations': relations!,
      if (sshPublicKeys != null) 'sshPublicKeys': sshPublicKeys!,
      if (suspended != null) 'suspended': suspended!,
      if (suspensionReason != null) 'suspensionReason': suspensionReason!,
      if (thumbnailPhotoEtag != null)
        'thumbnailPhotoEtag': thumbnailPhotoEtag!,
      if (thumbnailPhotoUrl != null) 'thumbnailPhotoUrl': thumbnailPhotoUrl!,
      if (websites != null) 'websites': websites!,
    };