toJson method
override
Object to Map serializer
Implementation
@override
Map<String, dynamic> toJson() {
return {
'@type': 'toggleSessionCanAcceptCalls',
if (extra != null) '@extra': extra,
'session_id': session_id,
'can_accept_calls': can_accept_calls
};
}