SetSessionConfigOptionRequestBoolean.fromMap constructor

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

Implementation

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