| 1 | package Google::Actions::Sdk::V2::Conversation::List::Types; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | use Type::Library -base; | ||
| 7 | use Type::Utils -all; | ||
| 8 | use Types::Standard -types; | ||
| 9 | |||
| 10 | declare 'List', | ||
| 11 | as InstanceOf['Google::Actions::Sdk::V2::Conversation::List::List']; | ||
| 12 | |||
| 13 | coerce 'List', | ||
| 14 | from HashRef, via { 'Google::Actions::Sdk::V2::Conversation::List::List'->new($_) }; | ||
| 15 | |||
| 16 | declare 'RepeatedList', | ||
| 17 | as ArrayRef[List()]; | ||
| 18 | |||
| 19 | coerce 'RepeatedList', | ||
| 20 | from ArrayRef[HashRef], via { [ map { 'Google::Actions::Sdk::V2::Conversation::List::List'->new($_) } @$_ ] }; | ||
| 21 | |||
| 22 | declare 'MapStringList', | ||
| 23 | as HashRef[List()]; | ||
| 24 | |||
| 25 | declare 'ListItem', | ||
| 26 | as InstanceOf['Google::Actions::Sdk::V2::Conversation::List::List::ListItem']; | ||
| 27 | |||
| 28 | coerce 'ListItem', | ||
| 29 | from HashRef, via { 'Google::Actions::Sdk::V2::Conversation::List::List::ListItem'->new($_) }; | ||
| 30 | |||
| 31 | declare 'RepeatedListItem', | ||
| 32 | as ArrayRef[ListItem()]; | ||
| 33 | |||
| 34 | coerce 'RepeatedListItem', | ||
| 35 | from ArrayRef[HashRef], via { [ map { 'Google::Actions::Sdk::V2::Conversation::List::List::ListItem'->new($_) } @$_ ] }; | ||
| 36 | |||
| 37 | declare 'MapStringListItem', | ||
| 38 | as HashRef[ListItem()]; | ||
| 39 | |||
| 40 | 1; | ||
| 41 | |||
| 42 | __END__ |