SessionUpdateCurrentModeUpdate.fromMap constructor

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

Implementation

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