1: <?php declare( strict_types = 1 );
2:
3: namespace Waves\Model;
4:
5: use Waves\Common\JsonBase;
6:
7: class AssetDistribution extends JsonBase
8: {
9: /**
10: * @return array<string, int>
11: */
12: function items(): array { return $this->json->get( 'items' )->asMapStringInt(); }
13: function lastItem(): string { return $this->json->get( 'lastItem' )->asString(); }
14: function hasNext(): bool { return $this->json->getOr( 'hasNext', false )->asBoolean(); }
15: }
16: