When using BuiltMap nesting, is it not automatically created?
abstract class Calendar implements Built<Calendar, CalendarBuilder> {
...
@BuiltValueField(wireName: 'calendar')
BuiltMap<String, BuiltMap<String, BuiltList<DayDTO>>>? get calendar;
...
}
automatically generated below
..addBuilderFactory(
const FullType(BuiltMap, const [
const FullType(String),
const FullType(BuiltMap, const [
const FullType(String),
const FullType(
BuiltList, const [const FullType(DayDTO)])
])
]),
() => new MapBuilder<String,
BuiltMap<String, BuiltList<DayDTO>>>())
however, the below needs to be added manually.
..addBuilderFactory(
const FullType(BuiltMap, const [
const FullType(String),
const FullType(
BuiltList, const [const FullType(DayDTO)])
]),
() => new MapBuilder<String, BuiltList<DayDTO>>())
..addBuilderFactory(
const FullType(
BuiltList, const [const FullType(DayDTO)]),
() => new ListBuilder<DayDTO>())
It won't work unless you add it manually in the code above. So you have to add it manually, but it works.
Is there a way to automatically generate it?
When using BuiltMap nesting, is it not automatically created?
automatically generated below
however, the below needs to be added manually.
It won't work unless you add it manually in the code above. So you have to add it manually, but it works.
Is there a way to automatically generate it?