@@ -1040,7 +1040,8 @@ const serializeAws_restJson1AudioInputEvent_event = (input: AudioInputEvent, con
1040
1040
} ,
1041
1041
body : new Uint8Array ( ) ,
1042
1042
} ;
1043
- message . body = serializeAws_restJson1AudioInputEvent ( input , context ) ;
1043
+ const body = serializeAws_restJson1AudioInputEvent ( input , context ) ;
1044
+ message . body = context . utf8Decoder ( JSON . stringify ( body ) ) ;
1044
1045
return message ;
1045
1046
} ;
1046
1047
const serializeAws_restJson1ConfigurationEvent_event = (
@@ -1054,7 +1055,8 @@ const serializeAws_restJson1ConfigurationEvent_event = (
1054
1055
} ,
1055
1056
body : new Uint8Array ( ) ,
1056
1057
} ;
1057
- message . body = serializeAws_restJson1ConfigurationEvent ( input , context ) ;
1058
+ const body = serializeAws_restJson1ConfigurationEvent ( input , context ) ;
1059
+ message . body = context . utf8Decoder ( JSON . stringify ( body ) ) ;
1058
1060
return message ;
1059
1061
} ;
1060
1062
const serializeAws_restJson1DisconnectionEvent_event = (
@@ -1068,7 +1070,8 @@ const serializeAws_restJson1DisconnectionEvent_event = (
1068
1070
} ,
1069
1071
body : new Uint8Array ( ) ,
1070
1072
} ;
1071
- message . body = serializeAws_restJson1DisconnectionEvent ( input , context ) ;
1073
+ const body = serializeAws_restJson1DisconnectionEvent ( input , context ) ;
1074
+ message . body = context . utf8Decoder ( JSON . stringify ( body ) ) ;
1072
1075
return message ;
1073
1076
} ;
1074
1077
const serializeAws_restJson1DTMFInputEvent_event = ( input : DTMFInputEvent , context : __SerdeContext ) : __Message => {
@@ -1079,7 +1082,8 @@ const serializeAws_restJson1DTMFInputEvent_event = (input: DTMFInputEvent, conte
1079
1082
} ,
1080
1083
body : new Uint8Array ( ) ,
1081
1084
} ;
1082
- message . body = serializeAws_restJson1DTMFInputEvent ( input , context ) ;
1085
+ const body = serializeAws_restJson1DTMFInputEvent ( input , context ) ;
1086
+ message . body = context . utf8Decoder ( JSON . stringify ( body ) ) ;
1083
1087
return message ;
1084
1088
} ;
1085
1089
const serializeAws_restJson1PlaybackCompletionEvent_event = (
@@ -1093,7 +1097,8 @@ const serializeAws_restJson1PlaybackCompletionEvent_event = (
1093
1097
} ,
1094
1098
body : new Uint8Array ( ) ,
1095
1099
} ;
1096
- message . body = serializeAws_restJson1PlaybackCompletionEvent ( input , context ) ;
1100
+ const body = serializeAws_restJson1PlaybackCompletionEvent ( input , context ) ;
1101
+ message . body = context . utf8Decoder ( JSON . stringify ( body ) ) ;
1097
1102
return message ;
1098
1103
} ;
1099
1104
const serializeAws_restJson1TextInputEvent_event = ( input : TextInputEvent , context : __SerdeContext ) : __Message => {
@@ -1104,7 +1109,8 @@ const serializeAws_restJson1TextInputEvent_event = (input: TextInputEvent, conte
1104
1109
} ,
1105
1110
body : new Uint8Array ( ) ,
1106
1111
} ;
1107
- message . body = serializeAws_restJson1TextInputEvent ( input , context ) ;
1112
+ const body = serializeAws_restJson1TextInputEvent ( input , context ) ;
1113
+ message . body = context . utf8Decoder ( JSON . stringify ( body ) ) ;
1108
1114
return message ;
1109
1115
} ;
1110
1116
const deserializeAws_restJson1AccessDeniedException_event = async (
0 commit comments