CastMessage constructor

CastMessage({
  1. CastMessage_ProtocolVersion? protocolVersion,
  2. String? sourceId,
  3. String? destinationId,
  4. String? namespace,
  5. CastMessage_PayloadType? payloadType,
  6. String? payloadUtf8,
  7. 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;
}