SessionConfigOptionBoolean.fromMap constructor

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

Implementation

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