toJson method

Map<String, dynamic> toJson()

Returns a Map containing this WebStoredCall data.

Implementation

Map<String, dynamic> toJson() {
  return {
    'chatId': chatId.val,
    'call': call?.toJson(),
    'creds': creds?.val,
    'deviceId': deviceId?.val,
    'state': state.index,
  };
}