Something went wrong. Try again.
Parse and validate AT Protocol Lexicons with DTO generation for Laravel
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354<?php
namespace SocialDept\AtpSchema\Generated\App\Bsky\Embed;
use SocialDept\AtpSchema\Data\Data;use SocialDept\AtpSchema\Generated\Com\Atproto\Repo\StrongRef;
/** * GENERATED CODE - DO NOT EDIT * * A representation of a record embedded in a Bluesky record (eg, a post). For * example, a quote-post, or sharing a feed generator record. * * Lexicon: app.bsky.embed.record * Type: object * * @property StrongRef $record * * Constraints: * - Required: record */class Record extends Data{ public function __construct( public readonly StrongRef $record ) { }
/** * Get the lexicon NSID for this data type. * * @return string */ public static function getLexicon(): string { return 'app.bsky.embed.record'; }
/** * Create an instance from an array. * * @param array $data The data array * @return static */ public static function fromArray(array $data): static { return new static( record: StrongRef::fromArray($data['record']) ); }
}