ContentBlockAudio.fromMap constructor

ContentBlockAudio.fromMap(
  1. Map<Object?, Object?> value
)

Implementation

factory ContentBlockAudio.fromMap(Map<Object?, Object?> value) {
  final decoded = ContentBlock.fromMap(value);
  if (decoded is! ContentBlockAudio) {
    throw const AcpWireDecodeException('Expected ContentBlockAudio.');
  }
  return decoded;
}