<?php
/**
 * This code was generated by
 * ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
 *  |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
 *  |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \
 *
 * Twilio - Lookups
 * This is the public Twilio REST API.
 *
 * NOTE: This class is auto generated by OpenAPI Generator.
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

namespace Twilio\Rest\Lookups\V2;

use Twilio\Values;
abstract class LookupOverrideModels
{
    /**
     * @property string $lineType The new line type to override the original line type
     * @property string $reason The reason for the override
    */
    public static function createOverridesRequest(array $payload = []): OverridesRequest
    {
        return new OverridesRequest($payload);
    }

}

class OverridesRequest implements \JsonSerializable
{
    /**
     * @property string $lineType The new line type to override the original line type
     * @property string $reason The reason for the override
    */
        protected $lineType;
        protected $reason;
    public function __construct(array $payload = []) {
        $this->lineType = Values::array_get($payload, 'line_type');
        $this->reason = Values::array_get($payload, 'reason');
    }

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

    public function jsonSerialize(): array
    {
        return [
            'line_type' => $this->lineType,
            'reason' => $this->reason
        ];
    }
}

