CastMessage constructor
CastMessage({
- CastMessage_ProtocolVersion? protocolVersion,
- String? sourceId,
- String? destinationId,
- String? namespace,
- CastMessage_PayloadType? payloadType,
- String? payloadUtf8,
- List<
int> ? payloadBinary,
Implementation
factory CastMessage({
CastMessage_ProtocolVersion? protocolVersion,
$core.String? sourceId,
$core.String? destinationId,
$core.String? namespace,
CastMessage_PayloadType? payloadType,
$core.String? payloadUtf8,
$core.List<$core.int>? payloadBinary,
}) {
final _result = create();
if (protocolVersion != null) {
_result.protocolVersion = protocolVersion;
}
if (sourceId != null) {
_result.sourceId = sourceId;
}
if (destinationId != null) {
_result.destinationId = destinationId;
}
if (namespace != null) {
_result.namespace = namespace;
}
if (payloadType != null) {
_result.payloadType = payloadType;
}
if (payloadUtf8 != null) {
_result.payloadUtf8 = payloadUtf8;
}
if (payloadBinary != null) {
_result.payloadBinary = payloadBinary;
}
return _result;
}