Sample constructor

Sample({
  1. required String keyExpr,
  2. required String payload,
  3. required Uint8List payloadBytes,
  4. required SampleKind kind,
  5. String? attachment,
  6. Uint8List? attachmentBytes,
  7. String? encoding,
})

Creates a Sample with the given fields.

Implementation

Sample({
  required this.keyExpr,
  required this.payload,
  required this.payloadBytes,
  required this.kind,
  this.attachment,
  this.attachmentBytes,
  this.encoding,
});