diff --git a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/player_action.dart b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/player_action.dart index 4145dff39e..2a397d8473 100644 --- a/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/player_action.dart +++ b/packages/smithy/goldens/lib/restJson1/lib/src/rest_json_protocol/model/player_action.dart @@ -39,15 +39,12 @@ sealed class PlayerAction extends _i1.SmithyUnion { } final class PlayerActionQuit extends PlayerAction { - const PlayerActionQuit() - : quit = const _i1.Unit(), - super._(); - - @override - final _i1.Unit quit; + const PlayerActionQuit() : super._(); @override String get name => 'quit'; + @override + _i1.Unit get quit => const _i1.Unit(); } final class PlayerActionSdkUnknown extends PlayerAction { diff --git a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/player_action.dart b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/player_action.dart index 71386707fa..178d023eb1 100644 --- a/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/player_action.dart +++ b/packages/smithy/goldens/lib2/restJson1/lib/src/rest_json_protocol/model/player_action.dart @@ -39,15 +39,12 @@ sealed class PlayerAction extends _i1.SmithyUnion { } final class PlayerActionQuit extends PlayerAction { - const PlayerActionQuit() - : quit = const _i1.Unit(), - super._(); - - @override - final _i1.Unit quit; + const PlayerActionQuit() : super._(); @override String get name => 'quit'; + @override + _i1.Unit get quit => const _i1.Unit(); } final class PlayerActionSdkUnknown extends PlayerAction {