-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathcomplete.mapper.g.dart
More file actions
44 lines (39 loc) · 1.19 KB
/
complete.mapper.g.dart
File metadata and controls
44 lines (39 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'complete.dart';
// **************************************************************************
// MapperGenerator
// **************************************************************************
@LazySingleton(as: ExampleMapper)
class ExampleMapperImpl extends ExampleMapper {
ExampleMapperImpl() : super();
@override
BarTarget fromFoo(
FooSource source,
FooSourceTheSecond second,
) {
final bartarget = BarTarget(
source.number,
source.text,
source.truthy,
source.superText,
named: source.named,
namedTwoDiff: source.namedTwo,
list: source.list.map((x) => fromFooSub(x)).toList(),
secondTextOther: second.secondTextOther,
);
bartarget.property = source.property;
bartarget.propertyTwoDiff = source.propertyTwo;
bartarget.nested = fromFooSub(source.nested);
bartarget.superPropertySet = source.superPropertySet;
bartarget.secondText = second.secondText;
return bartarget;
}
@override
BarNestedTarget fromFooSub(FooNestedSource source) {
final barnestedtarget = BarNestedTarget(
source.text,
source.number,
);
return barnestedtarget;
}
}