toJson method

  1. @override
Map<String, dynamic> toJson()
override

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'discardCall',
    if (extra != null) '@extra': extra,
    'call_id': call_id,
    'is_disconnected': is_disconnected,
    'duration': duration,
    'is_video': is_video,
    'connection_id': connection_id
  };
}