toJson method

List<Object?> toJson()

Implementation

List<Object?> toJson() {
  return [
    type,
    'appId',
    appId,
    'instanceId',
    instanceId,
    if (contextId != null) ...['contextId', contextId],
    if (tabUrl != null) ...['tabUrl', tabUrl],
    if (uriOnly != null) ...['uriOnly', uriOnly],
    if (client != null) ...['client', client],
  ];
}