Something went wrong. Try again.
Parse and validate AT Protocol Lexicons with DTO generation for Laravel
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455<?php
namespace SocialDept\AtpSchema\Generated\App\Bsky\Graph\Defs;
use SocialDept\AtpSchema\Data\Data;use SocialDept\AtpSchema\Generated\App\Bsky\Actor\Defs\ProfileView;
/** * GENERATED CODE - DO NOT EDIT * * Lexicon: app.bsky.graph.defs.listItemView * Type: object * * @property string $uri * @property ProfileView $subject * * Constraints: * - Required: uri, subject * - uri: Format: at-uri */class ListItemView extends Data{ public function __construct( public readonly string $uri, public readonly ProfileView $subject ) { }
/** * Get the lexicon NSID for this data type. * * @return string */ public static function getLexicon(): string { return 'app.bsky.graph.defs.listItemView'; }
/** * Create an instance from an array. * * @param array $data The data array * @return static */ public static function fromArray(array $data): static { return new static( uri: $data['uri'], subject: ProfileView::fromArray($data['subject']) ); }
}