dart_meta_types icon indicating copy to clipboard operation
dart_meta_types copied to clipboard

what if i wanted just an array

Open toklok opened this issue 6 years ago • 0 comments

@MetaJson()
@DataClass()
abstract class $CalendarResult {
  List<$CalendarItem> get items;
}

here is what happens

{
  "items: [{a: a},{b: b}]
}

but what if i wanted to do

[{a: a}, {b: b}]

how would I go about doing that? is it possible?

toklok avatar Feb 19 '19 02:02 toklok