ConsumerGroupAssignment.fromBytes constructor
ConsumerGroupAssignment.fromBytes(
- List<int> bytes
)
Implementation
factory ConsumerGroupAssignment.fromBytes(List<int> bytes) {
final reader = _Reader(bytes);
final version = reader.version();
final partitions = reader.partitions();
final userData = reader.bytes();
reader.end();
try {
return ConsumerGroupAssignment(partitions,
version: version, userData: userData);
} on ArgumentError catch (error) {
throw FormatException('Invalid consumer assignment: $error');
}
}