ContentBlockImage.fromMap constructor

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

Implementation

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