<?php
/**
 * This code was generated by
 * ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
 *  |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
 *  |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \
 *
 * Twilio Memory API
 * APIs for managing memory stores, profiles, events, and conversational intelligence capabilities.
 *
 * NOTE: This class is auto generated by OpenAPI Generator.
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

namespace Twilio\Rest\Memory\V1;

use Twilio\Values;
abstract class BulkModels
{
    /**
     * @property array<string,array<string,mixed>> $traits Multiple trait groups.
    */
    public static function createProfileData(array $payload = []): ProfileData
    {
        return new ProfileData($payload);
    }

    /**
     * @property ProfileData[] $profiles
    */
    public static function createUpdateProfilesBulkRequest(array $payload = []): UpdateProfilesBulkRequest
    {
        return new UpdateProfilesBulkRequest($payload);
    }

}

class ProfileData implements \JsonSerializable
{
    /**
     * @property array<string,array<string,mixed>> $traits Multiple trait groups.
    */
        protected $traits;
    public function __construct(array $payload = []) {
        $this->traits = Values::array_get($payload, 'traits');
    }

    public function toArray(): array
    {
        return $this->jsonSerialize();
    }

    public function jsonSerialize(): array
    {
        $jsonString = [
        ];
        if (isset($this->traits)) {
            $jsonString['traits'] = $this->traits;
        }
        return $jsonString;
    }
}

class UpdateProfilesBulkRequest implements \JsonSerializable
{
    /**
     * @property ProfileData[] $profiles
    */
        protected $profiles;
    public function __construct(array $payload = []) {
        $this->profiles = Values::array_get($payload, 'profiles');
    }

    public function toArray(): array
    {
        return $this->jsonSerialize();
    }

    public function jsonSerialize(): array
    {
        $jsonString = [
        ];
        if (isset($this->profiles)) {
            $jsonString['profiles'] = $this->profiles;
        }
        return $jsonString;
    }
}

