Metadata

Media metadata.

class Metadata {
  const Metadata({this.uid, this.size, this.buffer, this.timeStampMs});

  @JsonKey(name: 'uid')
  final int? uid;
  @JsonKey(name: 'size')
  final int? size;
  @JsonKey(name: 'buffer', ignore: true)
  final Uint8List? buffer;
  @JsonKey(name: 'timeStampMs')
  final int? timeStampMs;
  factory Metadata.fromJson(Map<String, dynamic> json) =>
      _$MetadataFromJson(json);
  Map<String, dynamic> toJson() => _$MetadataToJson(this);
}

Attributes

uid
The user ID.
  • For the recipient: The ID of the remote user who sent the Metadata.
  • For the sender: Ignore it.
size
The buffer size of the sent or received Metadata.
buffer
The buffer address of the sent or received Metadata.
timeStampMs
The timestamp (ms) of Metadata.