|
|
@ -21,13 +21,7 @@ class TypeResultBase extends TypeResult { |
|
|
|
name == 'String' ? object : '$object.toString()'; |
|
|
|
name == 'String' ? object : '$object.toString()'; |
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
@override |
|
|
|
String deserialize(final String object, {final bool toBuilder = false}) { |
|
|
|
String deserialize(final String object, {final bool toBuilder = false}) => '($object as $nullableName)'; |
|
|
|
if (name == 'JsonObject') { |
|
|
|
|
|
|
|
return 'JsonObject($object)${nullable ? '?' : ''}'; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return '($object as $nullableName)'; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
@override |
|
|
|
String decode(final String object) { |
|
|
|
String decode(final String object) { |
|
|
|