ContentBlockText.fromMap constructor

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

Implementation

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