*/ public function toArray(Request $request = null): array { $lists = []; foreach ($this->resource['ITEM'] as $v) { $lists[] = [ 'type_id' => (int) $v['TYPEID'], 'type_name' => $v['TYPENAME'], ]; } return $lists; } }