ContentBlockResourceLink.fromMap constructor

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

Implementation

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