|
|
@ -17,7 +17,7 @@ class _$BuiltComplexObjectSerializer
|
|
|
|
final String wireName = 'BuiltComplexObject';
|
|
|
|
final String wireName = 'BuiltComplexObject';
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Iterable serialize(Serializers serializers, BuiltComplexObject object,
|
|
|
|
Iterable<Object> serialize(Serializers serializers, BuiltComplexObject object,
|
|
|
|
{FullType specifiedType = FullType.unspecified}) {
|
|
|
|
{FullType specifiedType = FullType.unspecified}) {
|
|
|
|
final result = <Object>[];
|
|
|
|
final result = <Object>[];
|
|
|
|
if (object.aString != null) {
|
|
|
|
if (object.aString != null) {
|
|
|
@ -72,12 +72,12 @@ class _$BuiltComplexObjectSerializer
|
|
|
|
specifiedType: const FullType(
|
|
|
|
specifiedType: const FullType(
|
|
|
|
BuiltList, const [const FullType(BuiltSimpleObject)])));
|
|
|
|
BuiltList, const [const FullType(BuiltSimpleObject)])));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
BuiltComplexObject deserialize(Serializers serializers, Iterable serialized,
|
|
|
|
BuiltComplexObject deserialize(
|
|
|
|
|
|
|
|
Serializers serializers, Iterable<Object> serialized,
|
|
|
|
{FullType specifiedType = FullType.unspecified}) {
|
|
|
|
{FullType specifiedType = FullType.unspecified}) {
|
|
|
|
final result = new BuiltComplexObjectBuilder();
|
|
|
|
final result = new BuiltComplexObjectBuilder();
|
|
|
|
|
|
|
|
|
|
|
@ -108,25 +108,25 @@ class _$BuiltComplexObjectSerializer
|
|
|
|
result.aListOfStrings.replace(serializers.deserialize(value,
|
|
|
|
result.aListOfStrings.replace(serializers.deserialize(value,
|
|
|
|
specifiedType:
|
|
|
|
specifiedType:
|
|
|
|
const FullType(BuiltList, const [const FullType(String)]))
|
|
|
|
const FullType(BuiltList, const [const FullType(String)]))
|
|
|
|
as BuiltList);
|
|
|
|
as BuiltList<dynamic>);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 'aListOfInts':
|
|
|
|
case 'aListOfInts':
|
|
|
|
result.aListOfInts.replace(serializers.deserialize(value,
|
|
|
|
result.aListOfInts.replace(serializers.deserialize(value,
|
|
|
|
specifiedType:
|
|
|
|
specifiedType:
|
|
|
|
const FullType(BuiltList, const [const FullType(int)]))
|
|
|
|
const FullType(BuiltList, const [const FullType(int)]))
|
|
|
|
as BuiltList);
|
|
|
|
as BuiltList<dynamic>);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 'aListOfDoubles':
|
|
|
|
case 'aListOfDoubles':
|
|
|
|
result.aListOfDoubles.replace(serializers.deserialize(value,
|
|
|
|
result.aListOfDoubles.replace(serializers.deserialize(value,
|
|
|
|
specifiedType:
|
|
|
|
specifiedType:
|
|
|
|
const FullType(BuiltList, const [const FullType(double)]))
|
|
|
|
const FullType(BuiltList, const [const FullType(double)]))
|
|
|
|
as BuiltList);
|
|
|
|
as BuiltList<dynamic>);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 'aListOfObjects':
|
|
|
|
case 'aListOfObjects':
|
|
|
|
result.aListOfObjects.replace(serializers.deserialize(value,
|
|
|
|
result.aListOfObjects.replace(serializers.deserialize(value,
|
|
|
|
specifiedType: const FullType(
|
|
|
|
specifiedType: const FullType(
|
|
|
|
BuiltList, const [const FullType(BuiltSimpleObject)]))
|
|
|
|
BuiltList, const [const FullType(BuiltSimpleObject)]))
|
|
|
|
as BuiltList);
|
|
|
|
as BuiltList<dynamic>);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|