AvailableCommandInputUnstructured.fromMap constructor

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

Implementation

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