toJson method

Map<String, Object?> toJson()

Encodes this CockpitRemoteBridgeResponse as a JSON object.

Implementation

Map<String, Object?> toJson() => <String, Object?>{
  'requestId': requestId,
  'statusCode': statusCode,
  'contentType': contentType,
  if (jsonBody != null) 'jsonBody': jsonBody,
  if (bytesBase64 != null) 'bytesBase64': bytesBase64,
};